1
0
Fork 0
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:
Kay0u 2021-11-02 11:55:29 +01:00
parent f309b2d08f
commit 111cd4e684
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D

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 > /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
fi fi
done done
@ -325,7 +328,7 @@ touch "$config_path/gitlab-persistent.rb"
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 > /dev/null gitlab-ctl reconfigure
# Allow ssh for git # Allow ssh for git
usermod -a -G "ssh.app" "git" usermod -a -G "ssh.app" "git"