diff --git a/NOTES.md b/NOTES.md deleted file mode 100644 index e69de29..0000000 diff --git a/README.md b/README.md index 5ffc83d..195d61e 100644 --- a/README.md +++ b/README.md @@ -31,4 +31,5 @@ docker pull ghcr.io/feederbox826/stash-s6:alpine ## Other environment variables `SKIP_CHOWN` - skips chown operations for /config directory -`SKIP_NVIDIA_PATCH` - skips patching nvidia driver for multi-stream nvenc \ No newline at end of file +`SKIP_NVIDIA_PATCH` - skips patching nvidia driver for multi-stream nvenc +`MIGRATE` - automatic migration from stashapp/stash or hotio/stash \ No newline at end of file diff --git a/stash/root/opt/entrypoint.sh b/stash/root/opt/entrypoint.sh index a0330e2..72ce5db 100644 --- a/stash/root/opt/entrypoint.sh +++ b/stash/root/opt/entrypoint.sh @@ -164,7 +164,7 @@ patch_nvidia() { check_chown() { CHKDIR="$1" if [ ! -w "$CHKDIR" ]; then - if [ "$(touch ".test" 2>&1 | grep -c "Permission denied")" -eq 1 ]; then + if [ "$(touch "$CHKDIR/.test" 2>&1 | grep -c "Permission denied")" -eq 1 ]; then if [ -n "$SKIP_CHOWN" ]; then echo "WARNING: $CHKDIR is not writable by stash user and SKIP_CHOWN is set" echo "Please run 'chown -R $(id -u stash):$(id -g stash) $CHKDIR' to fix this"