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:
commit
680a6ed586
3 changed files with 8 additions and 1 deletions
|
@ -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."
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue