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:
parent
b36f91407f
commit
4ea4acffcc
1 changed files with 5 additions and 0 deletions
|
@ -49,6 +49,11 @@ then
|
||||||
ynh_app_setting_delete --app=$app --key=is_public
|
ynh_app_setting_delete --app=$app --key=is_public
|
||||||
fi
|
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
|
# Downgrade linux-image-$arch if updated to the buster-backports version
|
||||||
arch=$(ynh_detect_arch)
|
arch=$(ynh_detect_arch)
|
||||||
linuximage_version=$(ynh_package_version --package=linux-image-$arch)
|
linuximage_version=$(ynh_package_version --package=linux-image-$arch)
|
||||||
|
|
Loading…
Add table
Reference in a new issue