make it possible to set app to public/private

This commit is contained in:
Sebastian Gumprich
2021-09-12 22:01:12 +02:00
parent 6b652a5e24
commit 575db1502c
+5 -2
View File
@@ -159,8 +159,11 @@ chmod 644 "/etc/cron.d/$app"
#=================================================
ynh_script_progression --message="Configuring permissions..." --weight=3
# Restrict access to admin only
ynh_permission_update --permission "main" --add visitors
# Make app public if necessary
if [ $is_public -eq 1 ]
then
ynh_permission_update --permission="main" --add="visitors"
fi
#=================================================
# RELOAD NGINX