diff --git a/scripts/install b/scripts/install index 55ee27e..fbdd515 100755 --- a/scripts/install +++ b/scripts/install @@ -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