make it possible to set app to public/private
This commit is contained in:
+5
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user