1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/funkwhale_ynh.git synced 2024-09-03 18:36:24 +02:00

Set new permissions

This commit is contained in:
ericgaspar 2020-12-04 18:25:18 +01:00
parent 5b240fb900
commit 32a467ed44
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 6 additions and 17 deletions

View file

@ -17,7 +17,7 @@
"email": "jean-baptiste@holcroft.fr"
}],
"requirements": {
"yunohost": ">= 4.0"
"yunohost": ">= 4.0.0"
},
"multi_instance": true,
"services": [

View file

@ -238,11 +238,12 @@ ynh_add_fail2ban_config --logpath="/var/log/nginx/$domain-access.log" --failrege
#=================================================
ynh_script_progression --message="Configuring SSOwat..."
# Make app public if necessary
if [ "$is_public" -eq 1 ]
# Make app public if necessary or protect it
if [ $is_public -eq 1 ]
then
# makes sure no SSO credentials to be passed
ynh_app_setting_set --app="$app" --key=skipped_uris --value="/"
# Everyone can access the app.
# The "main" permission is automatically created before the install script.
ynh_permission_update --permission "main" --add "visitors"
fi
#=================================================

View file

@ -254,18 +254,6 @@ yunohost service add "$app-server" --log="/var/log/$app/server.log"
yunohost service add "$app-worker" --log="/var/log/$app/worker.log"
yunohost service add "$app-beat" --log="/var/log/$app/beat.log"
#=================================================
# SETUP SSOWAT
#=================================================
ynh_script_progression --message="Upgrading SSOwat configuration..."
# Make app public if necessary
if [ "$is_public" -eq 1 ]
then
# makes sure no SSO credentials to be passed
ynh_app_setting_set --app="$app" --key=skipped_uris --value="/"
fi
#=================================================
# START SYSTEMD SERVICE
#=================================================