1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/invoiceninja5_ynh.git synced 2024-09-03 19:26:23 +02:00

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

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