diff --git a/README.md b/README.md index 23ecaa0b..30a324a5 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ If you don't have YunoHost, please see [here](https://yunohost.org/#/install) to ## Overview The federated image sharing service Pixelfed, for YunoHost -**Shipped version:** 0.9.0 +**Shipped version:** 0.9.4 ## Important points to read before installing diff --git a/check_process b/check_process index ea6439c7..70946c0e 100644 --- a/check_process +++ b/check_process @@ -10,6 +10,7 @@ setup_private=1 setup_public=1 upgrade=1 + upgrade=1 from_commit=e53882baaed30f38293a4ec9d1395c6833759169 backup_restore=1 multi_instance=1 incorrect_path=1 diff --git a/conf/app.src b/conf/app.src index d492ccde..0e1d4d40 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/pixelfed/pixelfed/archive/v0.9.0.tar.gz -SOURCE_SUM=ea69f3441991c9122638b1476ba11ec1b7847fac569fa77a8ed7b03481b19d88 +SOURCE_URL=https://github.com/pixelfed/pixelfed/archive/v0.9.4.tar.gz +SOURCE_SUM=abb6bdf44035dcaa71cb2b5b85a76cb8f4ebca4cc390df5d66454046b8412766 OURCE_SUM_PRG=sha256sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true \ No newline at end of file diff --git a/manifest.json b/manifest.json index 0b352997..d346990b 100644 --- a/manifest.json +++ b/manifest.json @@ -5,7 +5,7 @@ "description": { "en": "ActivityPub Federated Image Sharing" }, - "version": "0.9.0~ynh4", + "version": "0.9.4~ynh1", "url": "https://pixelfed.org/", "license": "AGPL-3.0-or-later", "maintainer": [ diff --git a/scripts/install b/scripts/install index 11140814..aab746d3 100644 --- a/scripts/install +++ b/scripts/install @@ -120,6 +120,11 @@ chown -R "$app": "$final_path" ynh_install_composer --phpversion="7.2" --workdir="$final_path" +# Fix Google Recaptcha removal +ynh_secure_remove --file="$final_path/bootstrap/cache" +mkdir -p "$final_path/bootstrap/cache" +ynh_composer_exec --phpversion="7.2" --workdir="$final_path" --commands="dump-autoload" + #================================================= # SPECIFIC SETUP #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 2fdafb35..ddf7f7ee 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -145,12 +145,17 @@ ynh_add_fpm_config --phpversion="7.2" #================================================= # SPECIFIC UPGRADE #================================================= -# INSTALL PHP DEPENDENCIES +# UPDATE PHP DEPENDENCIES #================================================= chown -R "$app": "$final_path" -ynh_install_composer --phpversion="7.2" --workdir="$final_path" +# Fix Google Recaptcha removal +ynh_secure_remove --file="$final_path/bootstrap/cache" +mkdir -p "$final_path/bootstrap/cache" +ynh_composer_exec --phpversion="7.2" --workdir="$final_path" --commands="dump-autoload" + +ynh_composer_exec --phpversion="7.2" --workdir="$final_path" --commands="update" #================================================= # MODIFY A CONFIG FILE