Debug
This commit is contained in:
parent
dd5211e485
commit
63bf4fb986
1 changed files with 6 additions and 8 deletions
|
@ -2,21 +2,19 @@
|
||||||
|
|
||||||
if [ ! -f /data/mumo.ini ]
|
if [ ! -f /data/mumo.ini ]
|
||||||
then
|
then
|
||||||
cp /mumo/mumo.ini /data
|
cp -r /mumo/mumo.ini /mumo/modules /mumo/modules-available /data
|
||||||
|
|
||||||
chmod a+rw /data/mumo.ini
|
|
||||||
cp -r /mumo/modules /data
|
|
||||||
cp -r /mumo/modules-available /data
|
|
||||||
mkdir -p /data/modules-enabled
|
mkdir -p /data/modules-enabled
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Mumo apparently refuses to read config from mounted dirs,
|
# Mumo apparently refuses to read config from mounted dirs,
|
||||||
# so we copy them ...
|
# so we copy them ...
|
||||||
cp -r /data/mumo.ini /mumo
|
cp -r /data/mumo.ini /mumo
|
||||||
cp -r /data/modules-enabled /mumo
|
|
||||||
cp -r /data/modules /mumo
|
|
||||||
|
|
||||||
# make sure the data dir is writable
|
# if additional configuration is defined, we will replace our local default config.
|
||||||
|
[ -f /data/modules-enabled ] && cp -r /data/modules-enabled /mumo
|
||||||
|
[ -f /data/modules ] && cp -r /data/modules /mumo
|
||||||
|
|
||||||
|
# make sure our dir is writable for the user
|
||||||
chown mumo:mumo /mumo -R
|
chown mumo:mumo /mumo -R
|
||||||
|
|
||||||
exec su mumo -c "python3 /mumo/mumo.py"
|
exec su mumo -c "python3 /mumo/mumo.py"
|
||||||
|
|
Loading…
Reference in a new issue