diff --git a/bin/entrypoint.sh b/bin/entrypoint.sh index af31c66..2a2d571 100755 --- a/bin/entrypoint.sh +++ b/bin/entrypoint.sh @@ -11,8 +11,8 @@ fi cp -r /data/mumo.ini /mumo # 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 +[ -d /data/modules-enabled ] && cp -r /data/modules-enabled /mumo +[ -d /data/modules ] && rm -rf /mumo/modules && cp -r /data/modules /mumo # make sure our dir is writable for the user chown mumo:mumo /mumo -R