diff --git a/sync_motion.sh b/sync_motion.sh index 8e87cc2..454d144 100644 --- a/sync_motion.sh +++ b/sync_motion.sh @@ -1,8 +1,8 @@ #!/bin/bash # Ensure log directory exists -mkdir -p /home/habiwan/logs -LOG="/home/habiwan/logs/motion_sync.log" +mkdir -p /home/$USER/logs +LOG="/home/$USER/logs/motion_sync.log" LOCKFILE="/tmp/sync_motion.lock" # Configuration