diff --git a/rootfs/etc/cont-init.d/55-jdownloader2.sh b/rootfs/etc/cont-init.d/55-jdownloader2.sh index 930919d..ac932b0 100755 --- a/rootfs/etc/cont-init.d/55-jdownloader2.sh +++ b/rootfs/etc/cont-init.d/55-jdownloader2.sh @@ -52,18 +52,6 @@ else fi # Take ownership of the output directory. -if ! chown $USER_ID:$GROUP_ID /output 2>/dev/null; then - # Failed to take ownership of /output. This could happen when, - # for example, the folder is mapped to a network share. - # Continue if we have write permission, else fail. - TMPFILE="$(su-exec $USER_ID:$GROUP_ID mktemp /output/.test_XXXXXX 2>/dev/null)" - if [ $? -eq 0 ]; then - # Success, we were able to write file. - su-exec $USER_ID:$GROUP_ID rm "$TMPFILE" - else - log "ERROR: Failed to take ownership and no write permission on /output." - exit 1 - fi -fi +take-ownership /output # vim: set ft=sh :