diff --git a/conf/systemd.service b/conf/systemd.service index b489e29..f7517e1 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -6,8 +6,7 @@ After=network.target [Service] Type=simple -User=__APP__ -Group=__APP__ +User=www-data RemainAfterExit=yes Restart=always RestartSec=10 diff --git a/scripts/install b/scripts/install index 6443ee8..56aefc0 100644 --- a/scripts/install +++ b/scripts/install @@ -199,7 +199,7 @@ fi # Configure owner #================================================= -chown -R $app:$app "$final_path" +chown -R www-data $final_path #================================================= # Start lstu diff --git a/scripts/restore b/scripts/restore index dca01b3..ff4b7c1 100644 --- a/scripts/restore +++ b/scripts/restore @@ -91,7 +91,7 @@ ynh_psql_connect_as $db_name $db_pwd $db_name < ./db.sql #================================================= # Restore permissions on app files -chown -R $app:$app "$final_path" +chown -R www-data $final_path #================================================= # SPECIFIC RESTORATION diff --git a/scripts/upgrade b/scripts/upgrade index 7f92867..fe98d8a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -153,7 +153,7 @@ ynh_store_file_checksum "${final_path}/lstu.conf" # SECURING FILES AND DIRECTORIES #================================================= -chown -R $app:$app "$final_path" +chown -R www-data $final_path #================================================= # SETUP SYSTEMD