1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gitlab_ynh.git synced 2024-09-03 18:36:35 +02:00

Merge pull request #167 from YunoHost-Apps/fix-too-much-log

[fix] Don't display all db migration log
This commit is contained in:
Kayou 2021-11-22 11:30:48 +01:00 committed by GitHub
commit 9750efcea2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -308,7 +308,10 @@ then
chown root:root "$config_path/gitlab-persistent.rb" chown root:root "$config_path/gitlab-persistent.rb"
chmod 640 "$config_path/gitlab-persistent.rb" chmod 640 "$config_path/gitlab-persistent.rb"
gitlab-ctl reconfigure # During large migrations, the logs are too big to be sent to paste.yunohost.org
# Send the reconfigure logs in a file, and if the process succeeds, just delete it.
gitlab-ctl reconfigure > "/tmp/gitlab_upgrade_$current_version.log"
ynh_secure_remove --file="/tmp/gitlab_upgrade_$current_version.log"
fi fi
fi fi
done done