1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gitlab_ynh.git synced 2024-09-03 18:36:35 +02:00

fix restore

This commit is contained in:
Pierre Bourré 2018-12-25 19:01:57 +01:00
parent 2cb2f36f5d
commit 35bff9524e

View file

@ -65,9 +65,6 @@ ln -s /opt/gitlab/bin/gitlab-psql /usr/bin/gitlab-psql
ln -s /opt/gitlab/bin/gitlab-rails /usr/bin/gitlab-rails ln -s /opt/gitlab/bin/gitlab-rails /usr/bin/gitlab-rails
ln -s /opt/gitlab/bin/gitlab-rake /usr/bin/gitlab-rake ln -s /opt/gitlab/bin/gitlab-rake /usr/bin/gitlab-rake
gitlab-ctl stop unicorn
gitlab-ctl stop sidekiq
fullfile=$(ls /var/opt/gitlab/backups/*_gitlab* --file -c1 | head -1) fullfile=$(ls /var/opt/gitlab/backups/*_gitlab* --file -c1 | head -1)
basename="/var/opt/gitlab/backups/" basename="/var/opt/gitlab/backups/"
last_backup="${filename%_gitlab_backup.tar}" last_backup="${filename%_gitlab_backup.tar}"