1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pihole_ynh.git synced 2024-09-03 20:05:58 +02:00
This commit is contained in:
Kay0u 2021-09-14 19:39:14 +02:00
parent e67f5f39c0
commit 15726c5bc6
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D
3 changed files with 8 additions and 0 deletions

View file

@ -31,6 +31,7 @@ app=$YNH_APP_INSTANCE_NAME
path_url=$(ynh_app_setting_get --app=$app --key=path)
domain=$(ynh_app_setting_get --app=$app --key=domain)
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
pihole_version="$(ynh_app_setting_get --app=$app --key=pihole_version)"
#=================================================

View file

@ -347,6 +347,8 @@ then
ynh_script_progression --message="Restarting Dnsmasq..." --weight=2
ynh_systemd_action --action=restart --service_name=dnsmasq
ynh_systemd_action --action=restart --service_name=pihole-FTL
fi
#=================================================

View file

@ -188,6 +188,11 @@ ynh_systemd_action --action=restart --service_name=dnsmasq
#=================================================
ynh_script_progression --message="Removing the dedicated system user..." --weight=2
if [ "$pihole_version" == "Last 3.X" ]
then
# Dirty hack to remove correctly the user
killall -u $app
fi
ynh_system_user_delete --username=$app
#=================================================