CC-2758: Make airtime-install script Debian/Ubuntu compatible
-initial commit
This commit is contained in:
parent
d26e410799
commit
8cafc52cad
16 changed files with 491 additions and 15 deletions
|
@ -22,4 +22,5 @@ except Exception, e:
|
|||
print 'Error loading config file: ', e
|
||||
sys.exit(1)
|
||||
|
||||
#copy python files
|
||||
copy_dir("%s/../../api_clients"%current_script_dir, config["bin_dir"])
|
||||
|
|
19
python_apps/api_clients/install/api_client_install.sh
Normal file
19
python_apps/api_clients/install/api_client_install.sh
Normal file
|
@ -0,0 +1,19 @@
|
|||
#!/bin/bash -e
|
||||
#-e Causes bash script to exit if any of the installers
|
||||
#return with a non-zero return value.
|
||||
|
||||
if [ `whoami` != 'root' ]; then
|
||||
echo "Please run as root user."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
# Absolute path to this script, e.g. /home/user/bin/foo.sh
|
||||
SCRIPT=`readlink -f $0`
|
||||
# Absolute path this script is in, thus /home/user/bin
|
||||
SCRIPTPATH=`dirname $SCRIPT`
|
||||
|
||||
BIN_DIR=/usr/lib/airtime/api_clients
|
||||
|
||||
#copy api_client files
|
||||
cp -R $SCRIPTPATH/../../api_clients $BIN_DIR
|
Loading…
Add table
Add a link
Reference in a new issue