diff --git a/Changelog.md b/Changelog.md index df34a73b..4a317ef0 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,6 +1,7 @@ # Changelog **latest** +- fix restore backup operation - upgrade to gitlab-shell 1.9.6 - added app:sanitize command - automatically migrate database when gitlab version is updated diff --git a/assets/init b/assets/init index 20c6e50d..42bd2b7a 100755 --- a/assets/init +++ b/assets/init @@ -524,19 +524,19 @@ appRake () { if [ "$1" == "gitlab:backup:restore" ]; then # user needs to select the backup to restore - nBackups=$(ls tmp/backups/*_gitlab_backup.tar | wc -l) + nBackups=$(ls /home/git/data/backups/*_gitlab_backup.tar | wc -l) if [ $nBackups -eq 0 ]; then echo "No backup present. Cannot continue restore process.". return 1 fi - for b in `ls tmp/backups/ | sort -r` + for b in `ls /home/git/data/backups/ | sort -r` do echo " ├ $b" done read -p "Select a backup to restore: " file - if [ ! -f "tmp/backups/${file}" ]; then + if [ ! -f "/home/git/data/backups/${file}" ]; then echo "Specified backup does not exist. Aborting..." return 1 fi