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 #26 from YunoHost-Apps/testing

Fix resinstall the application after a removing
This commit is contained in:
Kayou 2019-02-01 23:27:07 +01:00 committed by GitHub
commit 680a6ed586
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 1 deletions

View file

@ -2,7 +2,7 @@
"name": "Gitlab",
"id": "gitlab",
"packaging_format": 1,
"version": "11.7.3~ynh1",
"version": "11.7.3~ynh2",
"description": {
"en": "Gitlab for Yunohost.",
"fr": "Gitlab pour YunoHost."

View file

@ -144,6 +144,7 @@ waiting_to_start() {
line_match_new="adopted new unicorn master"
line_match_existing="adopted existing unicorn master"
line_match_error="master failed to start"
clean_check_starting() {
# Stop the execution of tail
@ -157,6 +158,10 @@ waiting_to_start() {
# get the PID of the tail command
local pid_tail=$!
if grep --quiet "${line_match_error}" $templog; then # error, so restart gitlab
gitlab-ctl restart
fi
for i in $(seq 1 3600); do
if grep --quiet "${line_match_new}" $templog || grep --quiet "${line_match_existing}" $templog; then
echo "Gitlab has correctly started." >&2

View file

@ -30,6 +30,8 @@ portUnicorn=$(ynh_app_setting_get "$app" unicorn_port)
ynh_print_info "Removing Gitlab..."
gitlab-ctl stop
# Remove gitlab
dpkg --remove gitlab-ce