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

replace sting error

This commit is contained in:
anmol26s 2020-04-26 06:57:25 +05:30
parent 8a31e9dc25
commit a17252eb56
4 changed files with 8 additions and 17 deletions

View file

@ -17,22 +17,13 @@
upgrade=1 upgrade=1
backup_restore=0 backup_restore=0
multi_instance=0 multi_instance=0
incorrect_path=1 # This test is no longer necessary since the version 2.7 (PR: https://github.com/YunoHost/yunohost/pull/304), you can still do it if your app could be installed with this version.
# incorrect_path=1
port_already_use=1 port_already_use=1
change_url=0 change_url=0
;;; Levels ;;; Levels
Level 1=auto # If the level 5 (Package linter) is forced to 1. Please add justifications here.
Level 2=auto
Level 3=auto
# Level 4: If the app supports LDAP and SSOwat, turn level 4 to '1' and add a link to an issue or a part of your code to show it.
# If the app does not use LDAP nor SSOwat, and can't use them, turn level 4 to 'na' and explain as well.
Level 4=0
Level 5=auto Level 5=auto
Level 6=auto
Level 7=auto
Level 8=0
Level 9=0
Level 10=0
;;; Options ;;; Options
Email= Email=
Notification=none Notification=none

View file

@ -5,7 +5,7 @@
"en": "Webmin", "en": "Webmin",
"fr": "Webmin" "fr": "Webmin"
}, },
"version": "1.890ynh1", "version": "1.941~ynh1",
"url": "http://www.webmin.com", "url": "http://www.webmin.com",
"license": "free", "license": "free",
"maintainer": { "maintainer": {

View file

@ -127,8 +127,8 @@ apt-get install -y webmin
### `ynh_replace_string` is used to replace a string in a file. ### `ynh_replace_string` is used to replace a string in a file.
### (It's compatible with sed regular expressions syntax) ### (It's compatible with sed regular expressions syntax)
ynh_replace_string --match_string="port=10000" --replace_string"port=$port" --target_file="/etc/webmin/miniserv.conf" ynh_replace_string --match_string="port=10000" --replace_string="port=$port" --target_file="/etc/webmin/miniserv.conf"
ynh_replace_string --match_string="listen=10000" --replace_string"listen=$port" --target_file="/etc/webmin/miniserv.conf" ynh_replace_string --match_string="listen=10000" --replace_string="listen=$port" --target_file="/etc/webmin/miniserv.conf"
#================================================= #=================================================
# STORE THE CONFIG FILE CHECKSUM # STORE THE CONFIG FILE CHECKSUM

View file

@ -79,8 +79,8 @@ apt-get install -y webmin
### `ynh_replace_string` is used to replace a string in a file. ### `ynh_replace_string` is used to replace a string in a file.
### (It's compatible with sed regular expressions syntax) ### (It's compatible with sed regular expressions syntax)
ynh_replace_string --match_string="port=10000" --replace_string"port=$port" --target_file="/etc/webmin/miniserv.conf" ynh_replace_string --match_string="port=10000" --replace_string="port=$port" --target_file="/etc/webmin/miniserv.conf"
ynh_replace_string --match_string="listen=10000" --replace_string"listen=$port" --target_file="/etc/webmin/miniserv.conf" ynh_replace_string --match_string="listen=10000" --replace_string="listen=$port" --target_file="/etc/webmin/miniserv.conf"
#================================================= #=================================================
# SETUP SSOWAT # SETUP SSOWAT
#================================================= #=================================================