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 20:31:52 +01:00
parent 67616b6421
commit 38d9632d8c

View file

@ -75,6 +75,7 @@ ynh_restore_file "/var/opt/$app/backups/"
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/"
filename=$(basename -- "$fullfile")
last_backup="${filename%_gitlab_backup.tar}" last_backup="${filename%_gitlab_backup.tar}"
# Use gitlab-rake to backup # Use gitlab-rake to backup