1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wireguard_ynh.git synced 2024-09-03 20:35:58 +02:00

Make sure the app stay private

This commit is contained in:
tituspijean 2021-01-21 21:35:22 +01:00
parent b36f91407f
commit 4ea4acffcc

View file

@ -49,6 +49,11 @@ then
ynh_app_setting_delete --app=$app --key=is_public
fi
# WireGuard UI should be private, really.
if [ $(ynh_permission_has_user --permission=main --user=visitors) -eq 1 ]; then
ynh_permission_update --permission=main --remove=visitors
fi
# Downgrade linux-image-$arch if updated to the buster-backports version
arch=$(ynh_detect_arch)
linuximage_version=$(ynh_package_version --package=linux-image-$arch)