From 18086614482b4c8177e28fe544f981e63336dded Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 9 Jul 2021 07:47:16 +0200 Subject: [PATCH] Fix --- conf/systemd.service | 4 ++-- scripts/install | 1 - scripts/restore | 2 +- scripts/upgrade | 1 - 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/conf/systemd.service b/conf/systemd.service index 5044bc3..defb1a1 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -4,8 +4,8 @@ Documentation=https://github.com/kiwiirc/webircgateway After=network.target [Service] -User=www-data -Group=www-data +User=__APP__ +Group=__APP__ ExecStart=/var/www/webircgateway/kiwiirc --config=/var/www/webircgateway/config.conf ExecReload=/usr/bin/kill -USR1 $MAINPID LimitNOFILE=1048576 diff --git a/scripts/install b/scripts/install index 982a73b..46400fe 100644 --- a/scripts/install +++ b/scripts/install @@ -47,7 +47,6 @@ ynh_script_progression --message="Storing installation settings..." --weight=2 ynh_app_setting_set --app=$app --key=domain --value=$domain ynh_app_setting_set --app=$app --key=path --value=$path_url -ynh_app_setting_set --app=$app --key=is_public --value=$is_public #================================================= # FIND AND OPEN A PORT diff --git a/scripts/restore b/scripts/restore index f294e8c..66377ed 100644 --- a/scripts/restore +++ b/scripts/restore @@ -72,7 +72,7 @@ chown -R $app:www-data "$final_path" ynh_script_progression --message="Restoring the systemd configuration..." --weight=1 ynh_restore_file --origin_path="/etc/systemd/system/$app.service" -systemctl enable $app.service +systemctl enable $app.service --quiet #================================================= # INTEGRATE SERVICE IN YUNOHOST diff --git a/scripts/upgrade b/scripts/upgrade index 5d0062e..af91fe2 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -18,7 +18,6 @@ app=$YNH_APP_INSTANCE_NAME domain=$(ynh_app_setting_get --app=$app --key=domain) path_url=$(ynh_app_setting_get --app=$app --key=path) -is_public=$(ynh_app_setting_get --app=$app --key=is_public) final_path=$(ynh_app_setting_get --app=$app --key=final_path) port=$(ynh_app_setting_get --app=$app --key=port)