1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/backdrop_ynh.git synced 2024-09-03 20:36:14 +02:00

Merge pull request #17 from YunoHost-Apps/1.19.1

Upgrade to 1.19.1
This commit is contained in:
Éric Gaspar 2021-05-27 13:39:14 +02:00 committed by GitHub
commit d4a7852f0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 27 deletions

View file

@ -1,5 +1,5 @@
SOURCE_URL=https://github.com/backdrop/backdrop/releases/download/1.19.0/backdrop.zip SOURCE_URL=https://github.com/backdrop/backdrop/releases/download/1.19.1/backdrop.zip
SOURCE_SUM=a19ff45d576ad60792b22061b28dfda4a85980aaa7ee5dcd738513894e55192d SOURCE_SUM=356ccce2e112126da4f271e236ce185582b3bb76c7cca7688c0085399baa3a94
SOURCE_SUM_PRG=sha256sum SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=zip SOURCE_FORMAT=zip
SOURCE_IN_SUBDIR=true SOURCE_IN_SUBDIR=true

View file

@ -6,7 +6,7 @@
"en": "Easy-to-use CMS for building professional websites", "en": "Easy-to-use CMS for building professional websites",
"fr": "CMS facile à utiliser pour créer des sites Web professionnels" "fr": "CMS facile à utiliser pour créer des sites Web professionnels"
}, },
"version": "1.19.0~ynh1", "version": "1.19.1~ynh1",
"url": "https://backdropcms.org/", "url": "https://backdropcms.org/",
"upstream": { "upstream": {
"license": "GPL-2.0", "license": "GPL-2.0",

View file

@ -72,6 +72,11 @@ ynh_app_setting_set --app=$app --key=final_path --value=$final_path
# Download, check integrity, uncompress and patch the source from app.src # Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$final_path" ynh_setup_source --dest_dir="$final_path"
# Set permissions to app files
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION
#================================================= #=================================================
@ -106,15 +111,6 @@ ynh_replace_string --match_string="__SALT__" --replace_string="$(ynh_string_rand
# Recalculate and store the config file checksum into the app settings # Recalculate and store the config file checksum into the app settings
ynh_store_file_checksum --file="$final_path/settings.php" ynh_store_file_checksum --file="$final_path/settings.php"
#=================================================
# SECURE FILES AND DIRECTORIES
#=================================================
# Set permissions to app files
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
#================================================= #=================================================
# SETUP SSOWAT # SETUP SSOWAT
#================================================= #=================================================

View file

@ -61,10 +61,6 @@ ynh_script_progression --message="Restoring Backdrop main directory..." --weight
ynh_restore_file --origin_path="$final_path" ynh_restore_file --origin_path="$final_path"
#=================================================
# RESTORE USER RIGHTS
#=================================================
# Set permissions to app files # Set permissions to app files
chmod 750 "$final_path" chmod 750 "$final_path"
chmod -R o-rwx "$final_path" chmod -R o-rwx "$final_path"

View file

@ -89,6 +89,11 @@ then
ynh_setup_source --dest_dir="$final_path" --keep="$final_path/settings.php" ynh_setup_source --dest_dir="$final_path" --keep="$final_path/settings.php"
fi fi
# Set permissions to app files
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION
#================================================= #=================================================
@ -105,17 +110,6 @@ ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=2
# Create a dedicated PHP-FPM config # Create a dedicated PHP-FPM config
ynh_add_fpm_config --package="$extra_php_dependencies" ynh_add_fpm_config --package="$extra_php_dependencies"
#=================================================
# GENERIC FINALIZATION
#=================================================
# SECURE FILES AND DIRECTORIES
#=================================================
# Set permissions to app files
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION
#================================================= #=================================================