mirror of
https://github.com/YunoHost-Apps/pleroma_ynh.git
synced 2024-09-03 20:15:59 +02:00
Merge pull request #103 from YunoHost-Apps/testing
Update check_process
This commit is contained in:
commit
0a839da338
5 changed files with 12 additions and 2 deletions
|
@ -21,7 +21,8 @@
|
|||
setup_private=1
|
||||
setup_public=1
|
||||
upgrade=1
|
||||
upgrade=1 from_commit=edf199768f57000f4df6e2c704483e1036a78203
|
||||
upgrade=1 from_commit=9ec87c36793780f74365d3059d7b9d12885fbfcb
|
||||
upgrade=1 from_commit=3e88dd59d8e5593fb60a86ab955aafde76abdf2e
|
||||
backup_restore=1
|
||||
multi_instance=0
|
||||
# This test is no longer necessary since the version 2.7 (PR: https://github.com/YunoHost/yunohost/pull/304), you can still do it if your app could be installed with this version.
|
||||
|
|
|
@ -43,6 +43,8 @@ ynh_print_info --message="Stopping a systemd service..."
|
|||
|
||||
ynh_systemd_action --service_name=$app --action="stop" --log_path=systemd --line_match="Stopped $app"
|
||||
|
||||
pkill -u $app
|
||||
|
||||
#=================================================
|
||||
# BACKUP THE APP MAIN DIR
|
||||
#=================================================
|
||||
|
|
|
@ -76,6 +76,8 @@ ynh_print_info --message="Stopping a systemd service..."
|
|||
|
||||
ynh_systemd_action --service_name=$app --action="stop" --log_path=systemd --line_match="Stopped $app"
|
||||
|
||||
pkill -u $app
|
||||
|
||||
#=================================================
|
||||
# MODIFY URL IN NGINX CONF
|
||||
#=================================================
|
||||
|
|
|
@ -42,6 +42,8 @@ fi
|
|||
#=================================================
|
||||
ynh_print_info --message="Stopping all pleroma services..."
|
||||
|
||||
ynh_systemd_action --service_name=$app --action="stop" --log_path=systemd --line_match="Stopped $app"
|
||||
|
||||
pkill -u $app
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -128,6 +128,10 @@ ynh_print_info --message="Stopping a systemd service..."
|
|||
|
||||
ynh_systemd_action --service_name=$app --action="stop" --log_path=systemd --line_match="Stopped $app"
|
||||
|
||||
if ynh_version_gt "${previous_version}" "1.1.1~ynh1" ; then
|
||||
pkill -u $app
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# UPGRADE TO OTP RELEASE
|
||||
#=================================================
|
||||
|
@ -236,7 +240,6 @@ ynh_print_info --message="Making upgrade..."
|
|||
chown -R "$app":"$app" "$final_path"
|
||||
|
||||
pushd $final_path/$app
|
||||
su "$app" -s $SHELL -lc "$final_path/$app/bin/pleroma_ctl update"
|
||||
su "$app" -s $SHELL -lc "$final_path/$app/bin/pleroma_ctl migrate"
|
||||
popd
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue