1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/webmin_ynh.git synced 2024-09-03 20:36:08 +02:00

Fixed update for port

This commit is contained in:
anmol 2018-11-23 15:14:45 +05:30
parent 8def1f6145
commit 08fc941bcf

View file

@ -54,15 +54,6 @@ sudo rm jcameron-key.asc
sudo apt-get update sudo apt-get update
sudo apt-get upgrade sudo apt-get upgrade
#=================================================
# MODIFY A CONFIG FILE
#=================================================
### `ynh_replace_string` is used to replace a string in a file.
### (It's compatible with sed regular expressions syntax)
ynh_replace_string "port=10000" "port=$port" "/etc/webmin/miniserv.conf"
ynh_replace_string "listen=10000" "listen=$port" "/etc/webmin/miniserv.conf"
### Verify the checksum of a file, stored by `ynh_store_file_checksum` in the install script. ### Verify the checksum of a file, stored by `ynh_store_file_checksum` in the install script.
### And create a backup of this file if the checksum is different. So the file will be backed up if the admin had modified it. ### And create a backup of this file if the checksum is different. So the file will be backed up if the admin had modified it.