pleroma/start.sh
Your Name 641633d2be fix
2022-05-04 11:57:40 -06:00

30 lines
555 B
Bash
Executable File

#!/bin/bash
export SHELL="/bin/bash"
FILE='/configured.txt'
# Start the instance to verify that everything is working as expected
#Set Permissions
chown -R pleroma /var/lib/pleroma
chmod -R 777 /saves
#Configure Local Time
cp -f /usr/share/zoneinfo/US/Mountain /etc/localtime
#Start Cron and Postgresql
crond
#Configure and start Nginx
mkdir -p /run/nginx
nginx
#Start Pleroma
if [ ! -f "$FILE" ]
then
su postgres -s $SHELL -lc "/usr/lib/postgresql/14/bin/pg_ctl start -D /var/lib/postgresql/data"
MIX_ENV=prod mix phx.server
fi
tail -f /dev/null