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

Add new permissions

This commit is contained in:
ericgaspar 2021-01-04 11:28:24 +01:00
parent 49a71fdbcd
commit 891e2eead2
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 5 additions and 24 deletions

View file

@ -165,7 +165,7 @@ chown -R $app: $final_path
#=================================================
ynh_script_progression --message="Integrating service in YunoHost..."
yunohost service add $app --description "$app daemon for Ghost"
yunohost service add $app --description="$app daemon for Ghost" --log="/var/log/$app/$app.log"
#=================================================
# START SYSTEMD SERVICE
@ -180,14 +180,10 @@ ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --l
#=================================================
ynh_script_progression --message="Configuring SSOwat..."
if [ $is_public -eq 0 ]
then # Remove the public access
ynh_app_setting_delete $app skipped_uris
fi
# Make app public if necessary
# Make app public if necessary or protect it
if [ $is_public -eq 1 ]
then
ynh_app_setting_set --app=$app --key=skipped_uris --value="/"
ynh_permission_update --permission "main" --add "visitors"
fi
#=================================================

View file

@ -114,7 +114,7 @@ systemctl enable $app.service --quiet
#=================================================
ynh_script_progression --message="Integrating service in YunoHost..."
yunohost service add $app --description "$app daemon for Ghost"
yunohost service add $app --description="$app daemon for Ghost" --log="/var/log/$app/$app.log"
#=================================================
# START SYSTEMD SERVICE

View file

@ -194,7 +194,7 @@ chown -R $app: $final_path
#=================================================
ynh_script_progression --message="Integrating service in YunoHost..."
yunohost service add $app --description "$app daemon for Ghost"
yunohost service add $app --description="$app daemon for Ghost" --log="/var/log/$app/$app.log"
#=================================================
# START SYSTEMD SERVICE
@ -203,21 +203,6 @@ ynh_script_progression --message="Starting a systemd service..."
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Ghost boot"
#=================================================
# SETUP SSOWAT
#=================================================
ynh_script_progression --message="Upgrading SSOwat configuration..."
if [ $is_public -eq 0 ]
then # Remove the public access
ynh_app_setting_delete $app skipped_uris
fi
# Make app public if necessary
if [ $is_public -eq 1 ]
then
ynh_app_setting_set --app=$app --key=skipped_uris --value="/"
fi
#=================================================
# RELOAD NGINX
#=================================================