initial release
This commit is contained in:
commit
6415cfd7c4
6 changed files with 173 additions and 0 deletions
19
root/etc/cont-init.d/30-config
Normal file
19
root/etc/cont-init.d/30-config
Normal file
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/with-contenv bash
|
||||
|
||||
# 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
|
Loading…
Add table
Add a link
Reference in a new issue