1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mattermost_ynh.git synced 2024-09-03 19:36:29 +02:00

Merge pull request #421 from YunoHost-Apps/increase-migration-timeout

scripts: increase the PostgreSQL migration timeout again
This commit is contained in:
Pierre de La Morinerie 2023-05-01 16:31:41 +02:00 committed by GitHub
commit fb3aed0add
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,7 +35,7 @@ mariadb-to-pg() {
pushd $final_path
ynh_systemd_action --service_name="$app" --action="stop"
set +e
sudo -u mattermost timeout --preserve-status 180 "./bin/mattermost"
sudo -u mattermost timeout --preserve-status 300 "./bin/mattermost"
if [ "$?" != "0" ] && [ "$?" != "143" ] ; then
ynh_die --message="Failed to run Mattermost to create PostgreSQL database tables" --ret_code=1
fi