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

Remove -h symbolic link on chown

This commit is contained in:
ericgaspar 2021-02-02 09:48:31 +01:00
parent a76c29abca
commit 6251a1a91d
No known key found for this signature in database
GPG key ID: 574F281483054D44
4 changed files with 5 additions and 7 deletions

View file

@ -32,7 +32,7 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path)
#=================================================
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
#=================================================
ynh_script_progression --message="Backing up the app before changing its url (may take a while)..."
ynh_script_progression --message="Backing up the app before changing its URL (may take a while)..."
# Backup the current version of the app
ynh_backup_before_upgrade
@ -65,7 +65,7 @@ fi
#=================================================
# MODIFY URL IN NGINX CONF
#=================================================
ynh_script_progression --message="Updating nginx web server configuration..."
ynh_script_progression --message="Updating NGINX web server configuration..."
nginx_conf_path=/etc/nginx/conf.d/$old_domain.d/$app.conf

View file

@ -99,9 +99,7 @@ ynh_script_progression --message="Configuring permissions..."
# Make app public if necessary or protect it
if [ $is_public -eq 1 ]
then
# Everyone can access the app.
# The "main" permission is automatically created before the install script.
ynh_permission_update --permission "main" --add "visitors"
ynh_permission_update --permission="main" --add="visitors"
fi
#=================================================

View file

@ -59,7 +59,7 @@ ynh_restore_file --origin_path="$final_path"
ynh_script_progression --message="Restoring user rights..."
# Restore permissions on app files
chown -hR $app: $final_path
chown -R $app: $final_path
chmod -R 775 $final_path
#=================================================

View file

@ -115,7 +115,7 @@ ynh_add_fpm_config
ynh_script_progression --message="Securing files and directories..."
# Set permissions on app files
chown -hR $app: $final_path
chown -R $app: $final_path
chmod -R 775 $final_path
#=================================================