Update docker/mjolnir/start.sh
ci/woodpecker/push/woodpecker Pipeline failed Details

This commit is contained in:
colin 2024-02-05 01:51:50 +00:00
parent d7b35b7918
commit 32f11d3037
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
#!/bin/bash
CONFIG_ROOT=/data/config
CONFIG_PATH="/data/config/config.yaml"
DEFAULT_CONFIG_PATH="/etc/mjolnir-defaults/default.yaml"
HOME_SERVER_URL="${HOME_SERVER_URL:-https://matrix.org}"
@ -18,7 +18,7 @@ if [ ! -f "$DEFAULT_CONFIG_PATH" ]; then
fi
# Ensure the /etc/mjolnir directory exists
mkdir -p /etc/mjolnir
mkdir -p $CONFIG_ROOT
# Always copy the default to config to ensure it's the latest before applying changes
cp $DEFAULT_CONFIG_PATH $CONFIG_PATH