mirror of
https://github.com/YunoHost-Apps/shellinabox_ynh.git
synced 2024-09-03 20:26:12 +02:00
Allow shellinabox to log in syslog
Why a fucking --quiet hidden in the sysvinit service! How are we suppose to know what doesn't work if there's no log!
This commit is contained in:
parent
583328ef11
commit
da26c309eb
2 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -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
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue