7 lines
244 B
Bash
Executable File
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/) |