|
@@ -8,11 +8,11 @@ if [ "$(id -u)" -ne 0 ]; then
|
|
fi
|
|
fi
|
|
|
|
|
|
# Configuration
|
|
# Configuration
|
|
-WATCH_DIR="/media/mitch/media-annex1" # Set this to your SLSKD download directory
|
|
|
|
|
|
+WATCH_DIR="[CHANGE ME]" # Set this to your SLSKD download directory
|
|
CHECK_INTERVAL=30 # Time in seconds between checks
|
|
CHECK_INTERVAL=30 # Time in seconds between checks
|
|
-USER="mitch"
|
|
|
|
-GROUP="mitch"
|
|
|
|
-PERMISSIONS="777" # Full permissions for all users
|
|
|
|
|
|
+USER="[USER]"
|
|
|
|
+GROUP="[GROUP]" # If you don't know this, type `getent group` or `cat /etc/group`.
|
|
|
|
+PERMISSIONS="775" # Full permissions for all users
|
|
TMP_DIR="/tmp/permission_monitor_$$" # Use PID in temp directory name for uniqueness
|
|
TMP_DIR="/tmp/permission_monitor_$$" # Use PID in temp directory name for uniqueness
|
|
|
|
|
|
# Create temp directory and set up cleanup
|
|
# Create temp directory and set up cleanup
|