mirror of
https://github.com/YunoHost-Apps/gitlab_ynh.git
synced 2024-09-03 18:36:35 +02:00
Discard logs if the reconfigure process passes
This commit is contained in:
parent
f309b2d08f
commit
111cd4e684
1 changed files with 5 additions and 2 deletions
|
@ -308,7 +308,10 @@ then
|
|||
chown root:root "$config_path/gitlab-persistent.rb"
|
||||
chmod 640 "$config_path/gitlab-persistent.rb"
|
||||
|
||||
gitlab-ctl reconfigure > /dev/null
|
||||
# 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
|
||||
done
|
||||
|
@ -325,7 +328,7 @@ touch "$config_path/gitlab-persistent.rb"
|
|||
chown root:root "$config_path/gitlab-persistent.rb"
|
||||
chmod 640 "$config_path/gitlab-persistent.rb"
|
||||
|
||||
gitlab-ctl reconfigure > /dev/null
|
||||
gitlab-ctl reconfigure
|
||||
|
||||
# Allow ssh for git
|
||||
usermod -a -G "ssh.app" "git"
|
||||
|
|
Loading…
Add table
Reference in a new issue