You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!/usr/bin/with-contenv bash
|
|
|
|
|
|
|
|
# Create scripts directory
|
|
|
|
if [ ! -d "/config/scripts" ]; then
|
|
|
|
mkdir -p "/config/scripts"
|
|
|
|
chmod 0777 "/config/scripts"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Create configs directory
|
|
|
|
if [ ! -d "/config/scripts/configs" ]; then
|
|
|
|
mkdir -p "/config/scripts/configs"
|
|
|
|
chmod 0777 "/config/scripts/configs"
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Create logs directory
|
|
|
|
if [ ! -d "/config/scripts/logs" ]; then
|
|
|
|
mkdir -p "/config/scripts/logs"
|
|
|
|
chmod 0777 "/config/scripts/logs"
|
|
|
|
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
|