fix
This commit is contained in:
parent
b065a59af1
commit
787d1a57e4
14
setup.sh
14
setup.sh
@ -30,14 +30,14 @@ cd /opt/pleroma
|
||||
#Pleroma Configuration
|
||||
if [ ! -f "$FILE" ]
|
||||
then
|
||||
MIX_ENV=prod mix pleroma.instance gen
|
||||
mv config/generated_config.exs config/prod.secret.exs
|
||||
cp -f config/* /config/
|
||||
su pleroma -s /bin/bash -lc 'MIX_ENV=prod mix pleroma.instance gen'
|
||||
su pleroma -s /bin/bash -lc 'mv config/generated_config.exs config/prod.secret.exs'
|
||||
su pleroma -s /bin/bash -lc 'cp -f config/* /config/'
|
||||
sudo -Hu postgres psql -f config/setup_db.psql
|
||||
fi
|
||||
|
||||
mkdir -p /var/lib/pleroma/uploads
|
||||
mkdir -p /var/lib/pleroma/static
|
||||
su pleroma -s /bin/bash -lc 'mkdir -p /var/lib/pleroma/uploads'
|
||||
su pleroma -s /bin/bash -lc 'mkdir -p /var/lib/pleroma/static'
|
||||
|
||||
#Nginx and SSL
|
||||
sed -i "s/replaceME/${ENDPOINT}/g" /etc/nginx/conf.d/default.conf
|
||||
@ -45,11 +45,11 @@ openssl req -new -newkey rsa:4096 -days 365 -nodes -x509 -subj "/C=US/ST=CO/L=De
|
||||
mkdir /var/run/nginx
|
||||
|
||||
#Database Migrations
|
||||
MIX_ENV=prod mix ecto.migrate
|
||||
su pleroma -s /bin/bash -lc 'MIX_ENV=prod mix ecto.migrate'
|
||||
|
||||
touch /configured.txt
|
||||
|
||||
#Start Pleroma
|
||||
MIX_ENV=prod mix phx.server
|
||||
su pleroma -s /bin/bash -lc 'MIX_ENV=prod mix phx.server'
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user