Skip to content

Commit

Permalink
add pwd to see location
Browse files Browse the repository at this point in the history
  • Loading branch information
compgeniuses committed Feb 10, 2025
1 parent 69231b2 commit 2ff55f7
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions imageroot/actions/restore-module/70restore_database
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,18 @@ BACKUP_FILE="backup_paths.txt"
restore_back_up() {
local site=$1

# Load the backup paths fom file
# Print the current working directory
echo "Current working directory: $(pwd)"

# Check if the backup_paths.txt file exists
if [[ ! -f "$BACKUP_FILE" ]]; then
echo "Error: $BACKUP_FILE not found in $(pwd)"
exit 1
fi
# Load the backup paths fom file
source "$BACKUP_FILE"

# Run the restore command from bench
# Run the restore command from bench
podman exec backend bench --site "$site" restore "$DB_PATH" \
--db-root-password="$MARIADB_ROOT_PASSWORD" \
--with-public-files="$PUBLIC_ARCHIVE" \
Expand Down

0 comments on commit 2ff55f7

Please sign in to comment.