diff --git a/start.sh b/start.sh index 83eb660..cc5a794 100755 --- a/start.sh +++ b/start.sh @@ -5,7 +5,7 @@ FILE='/configured.txt' # Start the instance to verify that everything is working as expected #Set Permissions -chown -R pleroma /var/lib/pleroma +chown -R pleroma:pleroma /var/lib/pleroma chmod -R 777 /saves #Configure Local Time @@ -22,6 +22,7 @@ nginx if [ ! -f "$FILE" ] then su postgres -s $SHELL -lc "/usr/lib/postgresql/14/bin/pg_ctl start -D /var/lib/postgresql/data" +cd /opt/pleroma su pleroma -s /bin/bash -lc 'MIX_ENV=prod mix phx.server' fi