mirror of
https://github.com/YunoHost-Apps/adguardhome_ynh.git
synced 2024-09-03 18:06:23 +02:00
put the config file at the start, before we use it
This commit is contained in:
parent
ccce10f728
commit
815c087270
1 changed files with 3 additions and 3 deletions
|
@ -77,6 +77,9 @@ usermod -a -G ssl-cert "$app"
|
|||
#=================================================
|
||||
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
||||
|
||||
# Main config File
|
||||
ynh_add_config --template="AdGuardHome.yaml" --destination="$install_dir/AdGuardHome.yaml"
|
||||
|
||||
# get the name of the network interface in IPv4 and IPv6
|
||||
ipv4_interface="$(get_network_interface 4)"
|
||||
ipv6_interface="$(get_network_interface 6)"
|
||||
|
@ -98,9 +101,6 @@ update_agh_ip_config
|
|||
password=$(python3 -c "import bcrypt; print(bcrypt.hashpw(b\"$password\", bcrypt.gensalt(rounds=10)).decode())")
|
||||
ynh_app_setting_set --app="$app" --key=password --value="$password"
|
||||
|
||||
# Main config File
|
||||
ynh_add_config --template="AdGuardHome.yaml" --destination="$install_dir/AdGuardHome.yaml"
|
||||
|
||||
chmod 600 "$install_dir/AdGuardHome.yaml"
|
||||
chown -R "$app:$app" "$install_dir/AdGuardHome.yaml"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue