Skip to content
This repository has been archived by the owner on Oct 16, 2023. It is now read-only.

Commit

Permalink
Moved restore in progress lock
Browse files Browse the repository at this point in the history
The file wasn't being put in the right spot because the env var wasn't
defined yet.

Signed-off-by: Bill Maxwell <[email protected]>
  • Loading branch information
cloudnautique committed Aug 8, 2022
1 parent 58bc0e1 commit 8f2c779
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mariadb/scripts/restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

set -e

touch ${backup_root_dir}/restore_in_progress

backup_filename=${1}
backup_dir_name="${1%.*}"

backup_root_dir='/backups'
backup_to_restore="${backup_root_dir}/${backup_filename}"

touch ${backup_root_dir}/restore_in_progress

if [ ! -f "${backup_to_restore}" ]; then
echo "Backup file ${backup_to_restore} not found!"
exit 1
Expand Down

0 comments on commit 8f2c779

Please sign in to comment.