From 08fc941bcfcae31bbb6922bf3ca4f8160205428d Mon Sep 17 00:00:00 2001 From: anmol Date: Fri, 23 Nov 2018 15:14:45 +0530 Subject: [PATCH] Fixed update for port --- scripts/upgrade | 9 --------- 1 file changed, 9 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index f21a16f..2567329 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -54,15 +54,6 @@ sudo rm jcameron-key.asc sudo apt-get update 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. ### 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.