diff --git a/thelounge/rootfs/etc/cont-init.d/thelounge.sh b/thelounge/rootfs/etc/cont-init.d/thelounge.sh index d5bc533..eb5781a 100644 --- a/thelounge/rootfs/etc/cont-init.d/thelounge.sh +++ b/thelounge/rootfs/etc/cont-init.d/thelounge.sh @@ -6,8 +6,14 @@ export THELOUNGE_HOME=/data/thelounge if ! bashio::fs.directory_exists "/data/thelounge"; then + mkdir -p /data/thelounge +fi + +if ! bashio::fs.directory_exists "/config/thelounge/users"; then + bashio::log.info "Creating thelounge directory in /config.." + mkdir -p /config/thelounge/users + ln -sf /config/thelounge/users /data/thelounge/users bashio::log.info "Creating default hassio user.." - mkdir -p /data/thelounge/users cp /etc/thelounge/users/hassio.json /data/thelounge/users else for theme in $(bashio::config "themes")