runtipi/.devcontainer/filewatcher.sh
2023-01-25 20:28:36 +01:00

5 lines
No EOL
266 B
Bash
Executable file

#!/usr/bin/env bash
# We need to change the owner of the files in the app-data folder
# if this failes we have to change the permission your self
fswatch --event=Created /workspaces/runtipi/app-data/ | \
xargs -l1 sh -c 'echo "$1" && sudo chown node "$1" -R' -- &