Skip to content

Commit

Permalink
remove NOTES, touch to proper folder
Browse files Browse the repository at this point in the history
  • Loading branch information
feederbox826 committed Nov 23, 2023
1 parent f9f0636 commit 565bd94
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Empty file removed NOTES.md
Empty file.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
`SKIP_NVIDIA_PATCH` - skips patching nvidia driver for multi-stream nvenc
`MIGRATE` - automatic migration from stashapp/stash or hotio/stash
2 changes: 1 addition & 1 deletion stash/root/opt/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 565bd94

Please sign in to comment.