diff options
Moved shell scripts and apache config to their own folder; Updated bash scripts to have checks for root and apps
1 files changed, 0 insertions, 14 deletions
| -rwxr-xr-x | watch-move-to-www.sh | 14 |
diff --git a/watch-move-to-www.sh b/watch-move-to-www.sh deleted file mode 100755 index a67bc44..0000000 --- a/watch-move-to-www.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -DEFAULT_DIR="/var/www/devrix-job-board/" - -if [ ! -d "$DEFAULT_DIR" ]; then - -u www-data mkdir $DEFAULT_DIR -fi - -inotifywait -m ./src/ -r -e attrib -e create -e move -e delete | - while read dir action file; do - echo "[`date +"%Y-%m-%d %T"`] Updated folder" - cp -R ./src/. $DEFAULT_DIR - chown -R www-data:www-data $DEFAULT_DIR* - done |
