24 lines
402 B
Bash
24 lines
402 B
Bash
|
#!/bin/bash
|
||
|
export SHELL="/bin/bash"
|
||
|
FILE='/configured.txt'
|
||
|
|
||
|
#Set Permissions
|
||
|
chmod -R 777 /saves
|
||
|
|
||
|
#Configure Local Time
|
||
|
cp -f /usr/share/zoneinfo/US/Mountain /etc/localtime
|
||
|
|
||
|
#Start Cron and Postgresql
|
||
|
/etc/init.d/cron start
|
||
|
/etc/init.d/postgresql start
|
||
|
|
||
|
#Restore latest Database if container is new
|
||
|
if [ ! -f "$FILE" ]
|
||
|
then
|
||
|
#bash /restore.sh
|
||
|
bash /setup.sh
|
||
|
touch /configured.txt
|
||
|
fi
|
||
|
|
||
|
tail -f /dev/null
|