docker-pyload-ng/root/etc/cont-init.d/30-config

20 lines
368 B
Text
Raw Normal View History

2024-04-30 20:53:02 +02:00
#!/bin/sh
2022-01-24 11:20:57 -05:00
# create our folders
mkdir -p \
/config/settings \
/downloads
# default config file
[[ ! -f "/config/settings/pyload.cfg" ]] && \
cp \
/defaults/pyload.cfg \
/config/settings/pyload.cfg
# permissions
echo "[cont-init.d] Setting permissions this may take some time"
chown -R abc:abc \
/config
chown abc:abc \
/downloads