Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/docker-lidarr-extended/src/commit/8e622504f99f90eeaa38821db6debe863adbc859/root/etc/cont-init.d/98-script-setup.bash You should set ROOT_URL correctly, otherwise the web may not work correctly.
docker-lidarr-extended/root/etc/cont-init.d/98-script-setup.bash

43 lines
991 B

#!/usr/bin/with-contenv bash
# create extended directory if missing
if [ ! -d "/config/extended" ]; then
mkdir -p "/config/extended"
fi
# create scripts directory if missing
if [ ! -d "/config/extended/scripts" ]; then
mkdir -p "/config/extended/scripts"
else
echo "Removing previous scripts..."
rm -rf /config/extended/scripts/*
fi
if [ -d "/config/extended/scripts" ]; then
echo "Importing extended scripts..."
cp -r /scripts/* /config/extended/scripts/
fi
# create cache directory if missing
if [ ! -d "/config/extended/cache" ]; then
mkdir -p "/config/extended/cache"
fi
# create logs directory if missing
if [ ! -d "/config/extended/logs" ]; then
mkdir -p "/config/extended/logs"
fi
# set permissions
chmod 775 /etc/services.d/extended/run
chmod 755 /etc/services.d/extended/run
chmod 777 /config/extended
chmod 777 /config/extended/cache
chmod 777 /config/extended/logs
chmod -R 777 /config/extended/scripts
chown -R abc:abc /config/extended
echo "Complete..."
exit $?