1
0
Fork 0
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:
Pierre de La Morinerie 2016-04-17 17:57:47 +02:00
parent e63761ac02
commit 60a0e984f5

View file

@ -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