mirror of
https://github.com/YunoHost-Apps/adguardhome_ynh.git
synced 2024-09-03 18:06:23 +02:00
Update install
This commit is contained in:
parent
e613d16f8f
commit
accfd4e3aa
1 changed files with 2 additions and 10 deletions
|
@ -98,21 +98,13 @@ ynh_setup_source "$final_path"
|
||||||
# GENERATE PASSWORD
|
# GENERATE PASSWORD
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Check SHA1
|
chmod +x ../conf/htpasswd
|
||||||
#if ! sha1sum -c ../conf/htpasswd.checksum &> /dev/null
|
password_gen=$(../conf/htpasswd -B -n -b "$ad_user" "$ad_password" | sed "s/"$ad_user"://")
|
||||||
# then
|
|
||||||
# echo "htpasswd Integrity Error"
|
|
||||||
# exit
|
|
||||||
# else
|
|
||||||
# echo "htpasswd Integrity Success"
|
|
||||||
#fi
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# MODIFY A CONFIG FILE
|
# MODIFY A CONFIG FILE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
chmod +x ../conf/htpasswd
|
|
||||||
password_gen=$(../conf/htpasswd -B -n -b "$ad_user" "$ad_password" | sed "s/"$ad_user"://")
|
|
||||||
ynh_replace_string "__FINALPATH__" "$final_path" "../conf/systemd.service"
|
ynh_replace_string "__FINALPATH__" "$final_path" "../conf/systemd.service"
|
||||||
ynh_replace_string "__USER__" "$ad_user" "../conf/AdGuardHome.yaml"
|
ynh_replace_string "__USER__" "$ad_user" "../conf/AdGuardHome.yaml"
|
||||||
ynh_replace_string "__PWD__" "$password_gen" "../conf/AdGuardHome.yaml"
|
ynh_replace_string "__PWD__" "$password_gen" "../conf/AdGuardHome.yaml"
|
||||||
|
|
Loading…
Add table
Reference in a new issue