1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mattermost_ynh.git synced 2024-09-03 19:36:29 +02:00
This commit is contained in:
Éric Gaspar 2023-02-10 17:52:12 +01:00
parent 954b5f3ded
commit 24a1bf5602
2 changed files with 3 additions and 3 deletions

View file

@ -37,7 +37,7 @@ mariadb-to-pg() {
set +e
sudo -u mattermost timeout --preserve-status 30 "./bin/mattermost"
if [ "$?" != "0" ] && [ "$?" != "143" ] ; then
ynh_die --message="Mattermost creation failed on mattermost running" --ret_code=1
ynh_die --message="Mattermost creation failed on Mattermost running" --ret_code=1
fi
set -e
popd

View file

@ -53,7 +53,7 @@ fi
# Migrating from MySQL to PostgreSQL
# This migration should be done before the upgrade
if mysqlshow | grep -q "^| $db_name "; then
# Mattermost only support mysql and postgresql (not mariadb...)
# Mattermost only support MySQL and PostgreSQL (not MariaDB...)
mariadb-to-pg
fi
@ -122,7 +122,7 @@ ynh_add_systemd_config
# Fix old migrations
#=================================================
# Crazy fix for old unupgraded version
# IMPORTANT: THIS fix should be done after setup new sources and running mattermost
# IMPORTANT: THIS fix should be done after setup new sources and running Mattermost
if ynh_compare_current_package_version --comparison lt --version 5.37.1~ynh1
then
read -r -d '' fix_old_version_sql << EOM