19 lines
368 B
Bash
19 lines
368 B
Bash
#!/bin/sh
|
|
|
|
# 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
|