fux
This commit is contained in:
parent
787d1a57e4
commit
a83b50f190
3
start.sh
3
start.sh
@ -5,7 +5,7 @@ FILE='/configured.txt'
|
|||||||
# Start the instance to verify that everything is working as expected
|
# Start the instance to verify that everything is working as expected
|
||||||
|
|
||||||
#Set Permissions
|
#Set Permissions
|
||||||
chown -R pleroma /var/lib/pleroma
|
chown -R pleroma:pleroma /var/lib/pleroma
|
||||||
chmod -R 777 /saves
|
chmod -R 777 /saves
|
||||||
|
|
||||||
#Configure Local Time
|
#Configure Local Time
|
||||||
@ -22,6 +22,7 @@ nginx
|
|||||||
if [ ! -f "$FILE" ]
|
if [ ! -f "$FILE" ]
|
||||||
then
|
then
|
||||||
su postgres -s $SHELL -lc "/usr/lib/postgresql/14/bin/pg_ctl start -D /var/lib/postgresql/data"
|
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'
|
su pleroma -s /bin/bash -lc 'MIX_ENV=prod mix phx.server'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user