mirror of
https://github.com/YunoHost-Apps/lutim_ynh.git
synced 2024-09-03 19:36:24 +02:00
* Remove -- deployment that make upgrade to fail * Stop before removing the systemd service
This commit is contained in:
parent
98e75b940a
commit
fdd62ad17e
4 changed files with 17 additions and 16 deletions
|
@ -21,7 +21,7 @@
|
|||
setup_private=1
|
||||
setup_public=1
|
||||
upgrade=1
|
||||
upgrade=1 from_commit=4c29aa94f9d9048411c6e165e122e03574fb9b8d
|
||||
upgrade=1 from_commit=ec8858ed0d054049a0c8f46c6126ee8ae0798e8f
|
||||
backup_restore=1
|
||||
multi_instance=0
|
||||
port_already_use=1 (8095)
|
||||
|
@ -32,6 +32,6 @@
|
|||
Email=
|
||||
Notification=change
|
||||
;;; Upgrade options
|
||||
; commit=4c29aa94f9d9048411c6e165e122e03574fb9b8d
|
||||
name=08 Sep 2017 4c29aa94f9d9048411c6e165e122e03574fb9b8d
|
||||
; commit=ec8858ed0d054049a0c8f46c6126ee8ae0798e8f
|
||||
name=22 May 2020 ec8858ed0d054049a0c8f46c6126ee8ae0798e8f
|
||||
manifest_arg=domain=DOMAIN&path=PATH&admin=USER&is_public=1&always_encrypt=1&
|
||||
|
|
|
@ -6,9 +6,9 @@
|
|||
"en": "Self hosting images and sharing anonymous application",
|
||||
"fr": "Application d'hébergement et de partage d'images anonyme"
|
||||
},
|
||||
"version": "0.12.1~ynh1",
|
||||
"version": "0.12.1~ynh2",
|
||||
"url": "https://lut.im",
|
||||
"license": "AGPL-3.0",
|
||||
"license": "AGPL-3.0-only",
|
||||
"maintainer": {
|
||||
"name": "None...",
|
||||
"email": ""
|
||||
|
|
|
@ -21,14 +21,6 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
|||
|
||||
#=================================================
|
||||
# STANDARD REMOVE
|
||||
#=================================================
|
||||
# STOP AND REMOVE SERVICE
|
||||
#=================================================
|
||||
ynh_script_progression --message="Stopping and removing the systemd service..." --weight=6
|
||||
|
||||
# Remove the dedicated systemd config
|
||||
ynh_remove_systemd_config
|
||||
|
||||
#=================================================
|
||||
# REMOVE SERVICE FROM ADMIN PANEL
|
||||
#=================================================
|
||||
|
@ -40,6 +32,14 @@ then
|
|||
yunohost service remove $app
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# STOP AND REMOVE SERVICE
|
||||
#=================================================
|
||||
ynh_script_progression --message="Stopping and removing the systemd service..." --weight=6
|
||||
|
||||
# Remove the dedicated systemd config
|
||||
ynh_remove_systemd_config
|
||||
|
||||
#=================================================
|
||||
# REMOVE DEPENDENCIES
|
||||
#=================================================
|
||||
|
|
|
@ -266,9 +266,10 @@ ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_fil
|
|||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||
then
|
||||
ynh_script_progression --message="Upgrading $app with Carton..." --weight=4
|
||||
(cd $final_path
|
||||
ynh_secure_remove --file="$final_path/local"
|
||||
carton install --deployment --without=mysql --without=htpasswd --without=test)
|
||||
pushd "$final_path"
|
||||
ynh_secure_remove --file="$final_path/local"
|
||||
carton install --without=mysql --without=htpasswd --without=test
|
||||
popd
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue