From 69f73daf7b13009792b604ccd216590aba69a464 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sun, 24 Feb 2019 15:45:53 +0100 Subject: [PATCH] Upgrade to 0.9.9 final --- conf/systemd.service | 20 ++++++++++++++------ scripts/install | 6 ++++-- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/conf/systemd.service b/conf/systemd.service index d4bd6f0..104157b 100755 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -3,15 +3,23 @@ Description=__APP__ social network After=network.target postgresql.service [Service] -Environment="MIX_ENV=prod" -User=__APP__ -Group=__APP__ -WorkingDirectory=__FINALPATH__/__APP__ -Environment="HOME=__FINALPATH__" -ExecStart=/usr/bin/mix phx.server ExecReload=/bin/kill $MAINPID KillMode=process Restart=on-failure + +; Name of the user that runs the Pleroma service. +User=__APP__ +Group=__APP__ +; Declares that Pleroma runs in production mode. +Environment="MIX_ENV=prod" + +; Make sure that all paths fit your installation. +; Path to the home directory of the user running the Pleroma service. +Environment="HOME=__FINALPATH__" +; Path to the folder containing the Pleroma installation. +WorkingDirectory=__FINALPATH__/__APP__ +; Path to the Mix binary. +ExecStart=/usr/bin/mix phx.server StandardOutput=syslog StandardError=syslog diff --git a/scripts/install b/scripts/install index aba974d..0fa213d 100755 --- a/scripts/install +++ b/scripts/install @@ -155,9 +155,11 @@ ynh_psql_create_user "$app" "$db_pwd" ynh_psql_execute_as_root \ "CREATE DATABASE $db_name ENCODING 'UTF8' LC_COLLATE='C' LC_CTYPE='C' template=template0 OWNER $db_name;" ynh_psql_execute_as_root "\connect $db_name -CREATE EXTENSION IF NOT EXISTS unaccent;CREATE EXTENSION IF NOT EXISTS pg_trgm;" +CREATE EXTENSION IF NOT EXISTS unaccent;" ynh_psql_execute_as_root "\connect $db_name -CREATE EXTENSION IF NOT EXISTS unaccent;CREATE EXTENSION IF NOT EXISTS citext;" +CREATE EXTENSION IF NOT EXISTS pg_trgm;" +ynh_psql_execute_as_root "\connect $db_name +CREATE EXTENSION IF NOT EXISTS citext;" ynh_psql_execute_as_root "\connect $db_name CREATE EXTENSION IF NOT EXISTS \"uuid-ossp\";"