2018-12-08 13:50:44 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [ ! -f /data/mumo.ini ]
|
|
|
|
then
|
|
|
|
cp /mumo/mumo.ini /data
|
|
|
|
|
2020-08-17 00:20:48 +02:00
|
|
|
#sed -i 's/mumo.log/\/dev\/null/' /data/mumo.ini
|
|
|
|
#sed -i 's/mumo.pid/\/tmp\/mumo.pid/' /data/mumo.ini
|
|
|
|
#sed -i 's/modules-enabled\//\/data\/modules-enabled\//' /data/mumo.ini
|
2018-12-08 13:50:44 +01:00
|
|
|
|
|
|
|
chmod a+rw /data/mumo.ini
|
|
|
|
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-available /mumo
|
|
|
|
cp -r /data/modules-enabled /mumo
|
2020-08-16 20:59:04 +02:00
|
|
|
|
2020-08-16 23:35:23 +02:00
|
|
|
# make sure the data dir is writable
|
|
|
|
chown mumo:mumo /data -R
|
|
|
|
|
2020-08-17 00:20:48 +02:00
|
|
|
#exec su mumo -c "python3 /mumo/mumo.py"
|
|
|
|
exec python3 /mumo/mumo.py
|