From e9d7a6cd3dc379d17c0d1b24d6e3d037ae6a8bb2 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Mon, 16 Mar 2020 20:15:17 -0400 Subject: [PATCH] Create 21-path-setup.bash --- root/etc/cont-init.d/21-path-setup.bash | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 root/etc/cont-init.d/21-path-setup.bash diff --git a/root/etc/cont-init.d/21-path-setup.bash b/root/etc/cont-init.d/21-path-setup.bash new file mode 100644 index 0000000..1e9451f --- /dev/null +++ b/root/etc/cont-init.d/21-path-setup.bash @@ -0,0 +1,21 @@ +#!/usr/bin/with-contenv bash + +# Create scripts directory +if [ ! -d "/config/scripts" ]; then + mkdir -p "/config/scripts" + chmod 0777 "/config/scripts" +fi + +# Create downloads incomplete directory +if [ ! -d "/stroage/downloads/sabnzbd/incomplete" ]; then + mkdir -p "/stroage/downloads/sabnzbd/incomplete" + chmod 0777 "/stroage/downloads/sabnzbd/incomplete" +fi + +# Create downloads complete directory +if [ ! -d "/stroage//downloads/sabnzbd/complete" ]; then + mkdir -p "/stroage//downloads/sabnzbd/complete" + chmod 0777 "/stroage//downloads/sabnzbd/complete" +fi + +exit 0