From 83206fa145a583dad5e5dec98c17c084c2a10414 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 14 Nov 2021 21:19:10 +0100 Subject: [PATCH] 12.96.1 --- conf/app.src | 5 ++--- manifest.json | 2 +- scripts/install | 3 ++- scripts/upgrade | 28 ++++++++++++++-------------- 4 files changed, 19 insertions(+), 19 deletions(-) diff --git a/conf/app.src b/conf/app.src index 776183f..b339ee7 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,6 +1,5 @@ -SOURCE_URL=https://github.com/misskey-dev/misskey/archive/refs/tags/12.84.2.tar.gz -SOURCE_SUM=ec12513a37e41b0c92d51563b2a925017f5eb3c2c05bbcf54357e5e39064d2d1 +SOURCE_URL=https://github.com/misskey-dev/misskey/archive/refs/tags/12.96.1.tar.gz +SOURCE_SUM=95a50390b0a4b23e8d3b4992277987cc1526846218a992cd8167f1c15cc7f7dc SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true -SOURCE_FILENAME= diff --git a/manifest.json b/manifest.json index 1e13a8d..91066a3 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Microblogging platform", "fr": "Platforme de Microblogging" }, - "version": "12.84.2~ynh2", + "version": "12.96.1~ynh1", "url": "https://join.misskey.page/en/", "upstream": { "license": "AGPL-3.0", diff --git a/scripts/install b/scripts/install index 78fa0ed..4877950 100755 --- a/scripts/install +++ b/scripts/install @@ -129,7 +129,8 @@ ynh_script_progression --message="Installing Misskey..." --weight=15 pushd "$final_path" ynh_exec_warn_less yarn add ts-node webpack - ynh_exec_warn_less NODE_ENV=production yarn build + ynh_exec_warn_less yarn build + #ynh_exec_warn_less NODE_ENV=production yarn build ynh_exec_warn_less yarn run init popd diff --git a/scripts/upgrade b/scripts/upgrade index 81932fe..64b85f7 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -29,6 +29,20 @@ port=$(ynh_app_setting_get --app=$app --key=port) upgrade_type=$(ynh_check_app_version_changed) +#================================================= +# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP +#================================================= +ynh_script_progression --message="Backing up the app before upgrading (may take a while)..." --weight=1 + +# Backup the current version of the app +ynh_backup_before_upgrade +ynh_clean_setup () { + # restore it if the upgrade fails + ynh_restore_upgradebackup +} +# Exit if an error occurs during the execution of the script +ynh_abort_if_errors + #================================================= # ENSURE DOWNWARD COMPATIBILITY #================================================= @@ -53,20 +67,6 @@ if ynh_legacy_permissions_exists; then ynh_app_setting_delete --app=$app --key=is_public fi -#================================================= -# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP -#================================================= -ynh_script_progression --message="Backing up the app before upgrading (may take a while)..." --weight=1 - -# Backup the current version of the app -ynh_backup_before_upgrade -ynh_clean_setup () { - # restore it if the upgrade fails - ynh_restore_upgradebackup -} -# Exit if an error occurs during the execution of the script -ynh_abort_if_errors - #================================================= # STANDARD UPGRADE STEPS #=================================================