libretime/install/airtime-install
martin 6ab5ac4582 cc-2055: switch to init.d
-allow install script to be created from any location (no hardcoded paths)
-make python install scripts return 1 on error
-daemon now started automatically on boot using rc.local autostart
-change all prints to logs instead
-create airtime-uninstall shell script (and remove pypo user in here)
-create pypo user in shell script
2011-06-02 18:07:48 -04:00

33 lines
946 B
Bash
Executable File

#!/bin/bash
#Cause bash script to exit if any of the installers
#return with a non-zero return value.
set -e
# Absolute path to this script
SCRIPT=`readlink -f $0`
# Absolute directory this script is in
SCRIPTPATH=`dirname $SCRIPT`
echo -e "\n******************************** Install Begin *********************************"
php ${SCRIPTPATH}/airtime-install.php $@
echo -e "\n*** Creating Pypo User ***"
python ${SCRIPTPATH}/../python_apps/create-pypo-user.py
echo -e "\n*** Pypo Installation ***"
python ${SCRIPTPATH}/../python_apps/pypo/install/pypo-install.py
#echo -e "\n*** Recorder Installation ***"
#python ${SCRIPTPATH}/../python_apps/show-recorder/install/recorder-install.py
#echo -e "\n*** Media Monitor Installation ***"
#python ${SCRIPTPATH}/../python_apps/pytag-fs/install/media-monitor-install.py
sleep 4
airtime-check-system
echo -e "\n******************************* Install Complete *******************************"