From 2df1976407fc491ed998143762e526cb62278baa Mon Sep 17 00:00:00 2001 From: Dooho Yi Date: Wed, 6 Oct 2021 00:52:32 +0900 Subject: [PATCH] changed runtime user 'syncthing' -> 'nextcloud' - we want to keep the data folder /media/storage which is owned by nextcloud user. btw, the python code is owned by syncthing user but that is also available to the www-data group so nextcloud user already has full access. --- system/inotifywait-watcher/watcher.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/system/inotifywait-watcher/watcher.sh b/system/inotifywait-watcher/watcher.sh index 26bc9b5..ee25828 100755 --- 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 'syncthing' user -export PYENV_ROOT="/var/www/syncthing/.pyenv" +#load pyenv of 'nextcloud' user +export PYENV_ROOT="/home/nextcloud/.pyenv" export PATH="$PYENV_ROOT/bin:$PATH" if command -v pyenv 1>/dev/null 2>&1; then eval "$(pyenv init -)" @@ -15,7 +15,7 @@ eval "$(pyenv virtualenv-init -)" pyenv shell exp-dist #change directory -cd /home/yunohost.app/syncthing/Sync/exp-dist-losttr +cd /home/yunohost.app/syncthing/Sync/exp-dist-audiolog #start to watch.. ./run.sh