Commit 16c6da74 authored by Aflitos, Saulo Alves's avatar Aflitos, Saulo Alves
Browse files

start/restart scripts for vbox

parent 8b734e42
@reboot /home/ibrowser/start.sh
echo "KILLING"
pgrep ibrowser.py | xargs kill
echo "CALLING"
RFOLDER=/home/ibrowser/introgressionbrowser
$RFOLDER/ibrowser.py $RFOLDER/data &
echo "CALLED"
HPATH=/home/ibrowser
XPATH=$HPATH/introgressionbrowser
MPATH=$XPATH/data
LOG=$HPATH/start.log
SNAME=DATA
NID=1000
echo "SLEEPING"
sleep 20
echo "AWAKEN"
date >> $LOG
echo "NID $NID HPATH $HPATH XPATH $XPATH MPATH $MPATH" >> $LOG
sudo umount $MPATH >> $LOG
set -xeu
sudo mount -t vboxsf $SNAME $MPATH >> $LOG
#sudo mount -t vboxsf -o uid=$NID,gid=$NID $SNAME $MPATH >> $LOG
if [[ ! -f "$MPATH/config.py" ]]; then
echo "CONFIG FILE NOT FOUND. CHECK IF SHARED FOLDER HAS BEEN MOUNTED"
exit 1
fi
echo "RUNNING"
$HPATH/restart.sh
echo "RUN"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment