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
|
ynh_script_progression --message="Configuring permissions..." --weight=3
|
||||||
|
|
||||||
# Restrict access to admin only
|
# Make app public if necessary
|
||||||
ynh_permission_update --permission "main" --add visitors
|
if [ $is_public -eq 1 ]
|
||||||
|
then
|
||||||
|
ynh_permission_update --permission="main" --add="visitors"
|
||||||
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RELOAD NGINX
|
# RELOAD NGINX
|
||||||
|
|||||||
Reference in New Issue
Block a user