Files
quiz-ius/checkChanges.sh
2026-04-06 12:36:25 +00:00

7 lines
244 B
Bash
Executable File

#!/bin/bash
while read -r directory events filename; do
filepath="$directory$filename"
chmod 0755 "$filepath"
sudo systemctl restart apache2
done < <(inotifywait -e modify,create,delete -mrq --format '%w %e %f' /var/www/xcmg.fun/)