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:
commit
9750efcea2
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue