pleroma/postgresql/start.sh

24 lines
425 B
Bash
Raw Permalink Normal View History

2021-08-25 08:39:26 -06:00
#!/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
2021-11-02 13:10:27 -06:00
crond
su postgres -s $SHELL -lc "pg_ctl start -D /var/lib/postgresql/data"
2021-08-25 08:39:26 -06:00
#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