Skip to content

Commit

Permalink
fix: Update disk space check to use photon_data directory
Browse files Browse the repository at this point in the history
  • Loading branch information
rtuszik committed Jan 13, 2025
1 parent 2249ea8 commit c80ccb7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions start-photon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ check_disk_space() {
return 1
fi

# Check available space
available=$(df -B1 "$DATA_DIR" | awk 'NR==2 {print $4}')
# Check available space in photon_data directory
mkdir -p "$DATA_DIR/photon_data"
available=$(df -B1 "$DATA_DIR/photon_data" | awk 'NR==2 {print $4}')
if [ "$available" -lt "$remote_size" ]; then
log_error "Insufficient disk space. Required: ${remote_size}B , Available: ${available}B"
return 1
Expand Down

0 comments on commit c80ccb7

Please sign in to comment.