diff --git a/README.md b/README.md index 829c056..52b355a 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in Publishing, memberships, subscriptions and newsletters platform -**Shipped version:** 5.8.3~ynh1 +**Shipped version:** 5.16.2~ynh1 ## Screenshots diff --git a/README_fr.md b/README_fr.md index 66d2e59..a4388ab 100644 --- a/README_fr.md +++ b/README_fr.md @@ -17,7 +17,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour Plateforme d'édition, d'adhésions, d'abonnements et de newsletters -**Version incluse :** 5.8.3~ynh1 +**Version incluse :** 5.16.2~ynh1 ## Captures d'écran diff --git a/conf/admin.src b/conf/admin.src new file mode 100644 index 0000000..992eb17 --- /dev/null +++ b/conf/admin.src @@ -0,0 +1,5 @@ +SOURCE_URL=https://github.com/TryGhost/Admin/archive/refs/tags/v5.16.2.zip +SOURCE_SUM=d5558cd419c8d46bdc958064cb97f963d1ea793866414c025906ec15033512ed +SOURCE_SUM_PRG=sha256sum +SOURCE_FORMAT=zip +SOURCE_IN_SUBDIR=true diff --git a/conf/app.src b/conf/app.src index 3553922..9dda867 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://api.github.com/repos/TryGhost/Ghost/zipball/v5.8.3 -SOURCE_SUM=557c39864483fff00beeb60e27d84915e184845c69db3be83dcd7a65f327d497 +SOURCE_URL=https://api.github.com/repos/TryGhost/Ghost/zipball/v5.16.2 +SOURCE_SUM=76dba5c55c20ac1721213bd3eca4a5fd2698659ac2856ae3bf427d32180c3eae SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=zip SOURCE_IN_SUBDIR=true diff --git a/conf/casper.src b/conf/casper.src index d635bb2..fee3621 100644 --- a/conf/casper.src +++ b/conf/casper.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/TryGhost/Casper/archive/refs/tags/v5.2.3.zip -SOURCE_SUM=49d57ce078a2775f39d019ed74fa4ae9476e95fa35b02593c726c0ea25fe49df +SOURCE_URL=https://github.com/TryGhost/Casper/archive/refs/tags/v5.3.1.zip +SOURCE_SUM=62ea7d1da697f10f220852854d1bc4a1d7bf95b84b0021d55befd1b8af622a33 SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=zip SOURCE_IN_SUBDIR=true diff --git a/manifest.json b/manifest.json index 7af56e1..09e86a4 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Publishing, memberships, subscriptions and newsletters platform", "fr": "Plateforme d'édition, d'adhésions, d'abonnements et de newsletters" }, - "version": "5.8.3~ynh1", + "version": "5.16.2~ynh1", "url": "https://ghost.org/", "upstream": { "license": "MIT", @@ -51,4 +51,4 @@ } ] } -} \ No newline at end of file +} diff --git a/scripts/install b/scripts/install index 388008d..b57d7b8 100644 --- a/scripts/install +++ b/scripts/install @@ -103,6 +103,7 @@ ynh_setup_source --dest_dir="$final_path" mkdir -p $final_path/ghost/core/content/themes/casper ynh_setup_source --dest_dir="$final_path/ghost/core/content/themes/casper" --source_id="casper" +git init "$final_path" -q chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" diff --git a/scripts/upgrade b/scripts/upgrade index d3a2b7c..dadbc73 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -175,6 +175,11 @@ chown $app:$app "$final_path/.yarnrc.yml" # BUILD GHOST #============================================== +# Make the final_path a git repo if needed +if [ ! -d "$final_path/.git" ]; then + ynh_exec_as $app git init "$final_path" -q +fi + if [ "$upgrade_type" == "UPGRADE_APP" ] then ynh_script_progression --message="Building Ghost... (this will take some time and resources!)"