Allow multiple users

Closes #5
This commit is contained in:
Timmo 2019-05-11 02:42:37 +01:00
parent c30d5a5293
commit ea58482bef

View file

@ -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")