diff --git a/root/etc/cont-init.d/30-config b/root/etc/cont-init.d/30-config index 6f6a51b..b998cc8 100644 --- a/root/etc/cont-init.d/30-config +++ b/root/etc/cont-init.d/30-config @@ -1,17 +1,13 @@ #!/usr/bin/with-contenv bash # link database file -if [[ -e /config/PlexRequests.sqlite ]]; then -SQL_DBASE="PlexRequests" -else -SQL_DBASE="Ombi" fi -[[ ! -e /config/"${SQL_DBASE}".sqlite ]] && \ - > /config/"${SQL_DBASE}".sqlite -[[ -e /opt/ombi/"${SQL_DBASE}".sqlite && ! -L /opt/ombi/"${SQL_DBASE}".sqlite ]] && \ - rm /opt/ombi/"${SQL_DBASE}".sqlite -[[ ! -L /opt/ombi/"${SQL_DBASE}".sqlite ]] && \ - ln -s /config/"${SQL_DBASE}".sqlite /opt/ombi/Ombi.sqlite +[[ ! -e /config/Ombi.sqlite ]] && \ + > /config/Ombi.sqlite +[[ -e /opt/ombi/Ombi.sqlite && ! -L /opt/ombi/Ombi.sqlite ]] && \ + rm /opt/ombi/Ombi.sqlite +[[ ! -L /opt/ombi/Ombi.sqlite ]] && \ + ln -s /config/Ombi.sqlite /opt/ombi/Ombi.sqlite # link log folder [[ ! -d /config/logs ]] && \