diff --git a/nixos/common/software/cli/scripts/btrfs-backup.sh b/nixos/common/software/cli/scripts/btrfs-backup.sh index 9e8d06bd..936ce1e3 100755 --- a/nixos/common/software/cli/scripts/btrfs-backup.sh +++ b/nixos/common/software/cli/scripts/btrfs-backup.sh @@ -53,7 +53,7 @@ create_lock() { fi # Create new lock file with current PID - echo $$ > "$LOCK_FILE" + sudo echo $$ > "$LOCK_FILE" # Ensure lock file is removed on script exit trap cleanup_lock EXIT