mirror of
https://github.com/YunoHost-Apps/shellinabox_ynh.git
synced 2024-09-03 20:26:12 +02:00
Merge pull request #10 from YunoHost-Apps/fix_upgrade
Fix --disable-ssl missing after upgrade
This commit is contained in:
commit
919792c493
1 changed files with 15 additions and 2 deletions
|
@ -59,12 +59,25 @@ ynh_add_nginx_config
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
systemctl reload nginx
|
systemctl reload nginx
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# ALLOW THE SERVICE TO LOG IN SYSLOG
|
# CONFIGURE SHELLINABOX
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
|
# Verify the checksum and backup the file if it's different
|
||||||
|
ynh_backup_if_checksum_is_different "/etc/default/shellinabox"
|
||||||
|
|
||||||
|
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"
|
ynh_replace_string " -- -q --background" " -- --background" "/etc/init.d/shellinabox"
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
|
|
||||||
systemctl restart shellinabox
|
systemctl restart shellinabox
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# STORE THE CHECKSUM OF THE CONFIG FILE
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
# Calculate and store the config file checksum into the app settings
|
||||||
|
ynh_store_file_checksum "/etc/default/shellinabox"
|
||||||
|
|
Loading…
Add table
Reference in a new issue