1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/squid3_ynh.git synced 2024-09-03 20:26:11 +02:00

Removed admin password in install

This commit is contained in:
anmol26s 2018-09-14 10:38:41 +05:30
parent cf01a24824
commit c512965dc8
3 changed files with 2 additions and 4 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "squid3", "name": "squid3",
"id": "squid", "id": "squid3",
"packaging_format": 1, "packaging_format": 1,
"description": { "description": {
"en": "Squid 3 package for Yunohost" "en": "Squid 3 package for Yunohost"

View file

@ -56,3 +56,4 @@ $app_message
--- ---
Automatic diagnosis data from YunoHost Automatic diagnosis data from YunoHost
$(yunohost tools diagnosis | grep -B 100 "services:" | sed '/services:/d')" $(yunohost tools diagnosis | grep -B 100 "services:" | sed '/services:/d')"
}

View file

@ -56,15 +56,12 @@ ynh_app_setting_set $app port $port
ynh_install_app_dependencies squid3 mailutils ynh_install_app_dependencies squid3 mailutils
#================================================= #=================================================
# MODIFY A CONFIG FILE # MODIFY A CONFIG FILE
#================================================= #=================================================
### `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 "__ADMIN_PASS__" "$admin_pass_yuno" "../conf/squid.conf"
ynh_replace_string "__PORT__" "$port" "../conf/squid.conf" ynh_replace_string "__PORT__" "$port" "../conf/squid.conf"
cp -f "../conf/squid.conf" "/etc/squid3/." cp -f "../conf/squid.conf" "/etc/squid3/."
#================================================= #=================================================