diff --git a/scripts/install b/scripts/install index ef928f0..ff372d9 100644 --- a/scripts/install +++ b/scripts/install @@ -75,6 +75,10 @@ ynh_add_nginx_config cp ../conf/shellinabox /etc/default/shellinabox ynh_replace_string "__PORT__" "$port" "/etc/default/shellinabox" + +# Allow the service to log in syslog +ynh_replace_string " -- -q --background" " -- --background" "/etc/init.d/shellinabox" + systemctl restart shellinabox #================================================= diff --git a/scripts/restore b/scripts/restore index 2709165..e728df0 100644 --- a/scripts/restore +++ b/scripts/restore @@ -53,6 +53,10 @@ ynh_package_install shellinabox ynh_restore_file "/etc/shellinabox" ynh_restore_file "/etc/default/shellinabox" + +# Allow the service to log in syslog +ynh_replace_string " -- -q --background" " -- --background" "/etc/init.d/shellinabox" + systemctl restart shellinabox #=================================================