diff --git a/system/inotifywait-watcher/watcher.sh b/system/inotifywait-watcher/watcher.sh index 5ace89f..4732980 100644 --- a/system/inotifywait-watcher/watcher.sh +++ b/system/inotifywait-watcher/watcher.sh @@ -3,8 +3,8 @@ #set minimal required path export PATH=$PATH:$HOME/.local/bin -#load pyenv of 'my_webapp' user -export PYENV_ROOT="/var/www/my_webapp/.pyenv" +#load pyenv of 'syncthing' user +export PYENV_ROOT="/var/www/syncthing/.pyenv" export PATH="$PYENV_ROOT/bin:$PATH" if command -v pyenv 1>/dev/null 2>&1; then eval "$(pyenv init -)" @@ -15,10 +15,10 @@ eval "$(pyenv virtualenv-init -)" pyenv shell exp-dist #change directory -cd /var/www/my_webapp/expressive-distribusi +cd /var/www/syncthing/exp-dist-losttrain #start to watch.. ./run.sh -while inotifywait -e modify,move,create,delete,close_write -r ./data/ ; do +while inotifywait -e modify,move,delete,close_write -r ./data/ ; do ./run.sh done