mumble-moderator/bin/entrypoint.sh

23 lines
476 B
Bash
Raw Normal View History

2018-12-08 13:50:44 +01:00
#!/bin/bash
if [ ! -f /data/mumo.ini ]
then
cp /mumo/mumo.ini /data
chmod a+rw /data/mumo.ini
2020-08-17 00:42:27 +02:00
cp -r /mumo/modules /data
2018-12-08 13:50:44 +01:00
cp -r /mumo/modules-available /data
mkdir -p /data/modules-enabled
fi
# Mumo apparently refuses to read config from mounted dirs,
# so we copy them ...
cp -r /data/mumo.ini /mumo
cp -r /data/modules-enabled /mumo
2020-08-17 00:42:27 +02:00
cp -r /data/modules /mumo
2020-08-16 20:59:04 +02:00
2020-08-16 23:35:23 +02:00
# make sure the data dir is writable
2020-08-17 00:42:27 +02:00
chown mumo:mumo /mumo -R
2020-08-16 23:35:23 +02:00
2020-08-17 00:42:27 +02:00
exec su mumo -c "python3 /mumo/mumo.py"