Innovenergy_trunk/make_deploy/initscript

25 lines
666 B
Bash
Executable File

#!/bin/sh -x
exec >/data/logfile.txt 2>&1
#set -e
#enable rw filesystem
/data/scripts/rw_root
/data/scripts/resize_root_fs
date "%T"
mkdir -p /opt/innovenergy/scripts
rsync -ar --relative /data/deploy/./ /
cp -rf /data/scripts/* /opt/innovenergy/scripts
cp /data/.bashrc ~
#cd /data/deploy && rm -rf *
#cd .. && rmdir deploy
/data/scripts/ro_root
ln -sf /opt/innovenergy/openvpn/service /service/openvpn
ln -sf /opt/innovenergy/EmuMeter/service /service/EmuMeter
ln -sf /opt/innovenergy/CsController/service /service/CsController
ln -sf /opt/innovenergy/dbus-fzsonick-48tl/service /service/Controller
echo "Done --- No errors encountered" >> logfile.txt
exit 0