From a83b50f19044230b8bb67a98597adb7f914fb991 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 4 May 2022 12:16:39 -0600 Subject: [PATCH] fux --- start.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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