mirror of
https://github.com/YunoHost-Apps/mattermost_ynh.git
synced 2024-09-03 19:36:29 +02:00
Fix upgrade script failure handler
This commit is contained in:
parent
e63761ac02
commit
60a0e984f5
1 changed files with 2 additions and 2 deletions
|
@ -11,9 +11,9 @@ function cleanup_and_restart
|
|||
set +e
|
||||
rm "mattermost.tar.gz"
|
||||
sudo supervisorctl start mattermost
|
||||
exit 0
|
||||
exit 1
|
||||
}
|
||||
trap exit_properly ERR
|
||||
trap cleanup_and_restart ERR
|
||||
|
||||
# Stop server
|
||||
sudo supervisorctl stop mattermost
|
||||
|
|
Loading…
Add table
Reference in a new issue