first save up

This commit is contained in:
sparklyballs 2017-05-19 10:28:58 +01:00
commit 9d3781519b
12 changed files with 341 additions and 0 deletions

View file

@ -0,0 +1,12 @@
[AutoRun]
enabled=false
program=
[LegalNotice]
Accepted=true
[Preferences]
Connection\PortRangeMin=6881
Downloads\SavePath=/downloads/
Downloads\ScanDirsV2=@Variant(\0\0\0\x1c\0\0\0\0)
Downloads\TempPath=/downloads/incomplete/

View file

@ -0,0 +1,14 @@
#!/usr/bin/with-contenv bash
# make our folders
mkdir -p \
/config/qBittorrent \
/config/data
# copy config
[[ ! -e /config/qBittorrent/qBittorrent.conf ]] && \
cp /defaults/qBittorrent.conf /config/qBittorrent/qBittorrent.conf
# permissions
chown -R abc:abc \
/config

View file

@ -0,0 +1,8 @@
#!/usr/bin/with-contenv bash
UMASK_SET=${UMASK_SET:-022}
umask "$UMASK_SET"
exec \
s6-setuidgid abc /usr/bin/qbittorrent-nox