mirror of
https://github.com/YunoHost-Apps/gitlab_ynh.git
synced 2024-09-03 18:36:35 +02:00
Merge pull request #254 from YunoHost-Apps/alexAubin-patch-1
Update restore: i guess you meant to check "system users", not yunohost user
This commit is contained in:
commit
2b49d8ece9
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ gitlab-ctl stop sidekiq
|
||||||
ynh_exec_warn_less gitlab-backup restore force=yes BACKUP=$last_backup
|
ynh_exec_warn_less gitlab-backup restore force=yes BACKUP=$last_backup
|
||||||
|
|
||||||
# https://docs.gitlab.com/ce/raketasks/backup_restore.html#container-registry-push-failures-after-restoring-from-a-backup
|
# https://docs.gitlab.com/ce/raketasks/backup_restore.html#container-registry-push-failures-after-restoring-from-a-backup
|
||||||
if ynh_user_exists --username="registry" && [ -d "/var/opt/gitlab/gitlab-rails/shared/registry/docker" ]; then
|
if ynh_system_user_exists --username="registry" && [ -d "/var/opt/gitlab/gitlab-rails/shared/registry/docker" ]; then
|
||||||
chown -R registry:registry /var/opt/gitlab/gitlab-rails/shared/registry/docker
|
chown -R registry:registry /var/opt/gitlab/gitlab-rails/shared/registry/docker
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue