diff --git a/conf/app-upgrade.src b/conf/app-upgrade.src new file mode 100644 index 0000000..08afa35 --- /dev/null +++ b/conf/app-upgrade.src @@ -0,0 +1,6 @@ +SOURCE_URL=https://github.com/getgrav/grav/releases/download/1.5.1/grav-update-v1.5.1.zip +SOURCE_SUM=D1D1BD1937848F54A707778DCF315EB17D95A3D9094DCC4189F0189C4824FC7C +SOURCE_SUM_PRG=sha256sum +SOURCE_FORMAT=zip +SOURCE_IN_SUBDIR=true +SOURCE_FILENAME= diff --git a/scripts/upgrade b/scripts/upgrade index 8081797..c054c34 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -67,16 +67,14 @@ ynh_abort_if_errors # Normalize the URL path syntax path_url=$(ynh_normalize_url_path $path_url) - - #================================================= # STANDARD UPGRADE STEPS #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= -# Download, check integrity, uncompress and patch the source from app.src -ynh_setup_source "$final_path" +# Download, check integrity, uncompress and patch the source from app-upgrade.src +ynh_setup_source "$final_path" "app-upgrade" #================================================= # NGINX CONFIGURATION @@ -105,14 +103,13 @@ ynh_system_user_create "$app" # Create a dedicated php-fpm config ynh_add_fpm_config -chown -R "$app": "$final_path" - #================================================= # GENERIC FINALIZATION #================================================= # SECURE FILES AND DIRECTORIES #================================================= +chown -R "$app": "$final_path" #================================================= # SETUP SSOWAT @@ -131,4 +128,4 @@ fi # RELOAD NGINX #================================================= -systemctl reload nginx \ No newline at end of file +systemctl reload nginx