diff --git a/start-configuration b/start-configuration index 90dde0fd..a79f7471 100644 --- a/start-configuration +++ b/start-configuration @@ -19,9 +19,9 @@ if [ ! -e /data/eula.txt ]; then exit 1 fi - echo "# Generated via Docker on $(date)" > eula.txt + echo "# Generated via Docker on $(date)" > /data/eula.txt - if ! echo "eula=$EULA" >> eula.txt; then + if ! echo "eula=$EULA" >> /data/eula.txt; then log "ERROR: unable to write eula to /data. Please make sure attached directory is writable by uid=${UID}" exit 2 fi diff --git a/start-deployFabric b/start-deployFabric index 194594a9..d8305568 100644 --- a/start-deployFabric +++ b/start-deployFabric @@ -29,7 +29,7 @@ elif [[ ! -e $FABRIC_INSTALLER ]]; then exit 2 fi -installMarker=".fabric-installed-${VANILLA_VERSION}-${FABRIC_VERSION:-manual}" +installMarker="/data/.fabric-installed-${VANILLA_VERSION}-${FABRIC_VERSION:-manual}" debug Checking for installMarker ${installMarker} if [[ ! -e $installMarker ]]; then diff --git a/start-deployForge b/start-deployForge index d280ac5e..739808b0 100644 --- a/start-deployForge +++ b/start-deployForge @@ -47,7 +47,7 @@ elif [[ ! -e $FORGE_INSTALLER ]]; then exit 2 fi -installMarker=".forge-installed-$shortForgeVersion" +installMarker="/data/.forge-installed-$shortForgeVersion" if [ ! -e $installMarker ]; then if [ ! -e $FORGE_INSTALLER ]; then diff --git a/start-minecraftFinalSetup b/start-minecraftFinalSetup index 76c03fa3..8e252f4d 100644 --- a/start-minecraftFinalSetup +++ b/start-minecraftFinalSetup @@ -4,14 +4,14 @@ if [ -n "$OPS" ]; then log "Setting/adding ops" - rm -rf ops.txt.converted - echo $OPS | awk -v RS=, '{print}' > ops.txt + rm -rf /data/ops.txt.converted + echo $OPS | awk -v RS=, '{print}' > /data/ops.txt fi if [ -n "$WHITELIST" ]; then log "Setting whitelist" - rm -rf white-list.txt.converted - echo $WHITELIST | awk -v RS=, '{print}' > white-list.txt + rm -rf /data/white-list.txt.converted + echo $WHITELIST | awk -v RS=, '{print}' > /data/white-list.txt fi if [ -n "$ICON" -a ! -e server-icon.png ]; then @@ -41,7 +41,7 @@ fi # Make sure files exist and are valid JSON (for pre-1.12 to 1.12 upgrades) log "Checking for JSON files." -JSON_FILES=$(find . -maxdepth 1 -name '*.json') +JSON_FILES=$(find /data -maxdepth 1 -name '*.json') for j in $JSON_FILES; do if [[ $(cat "$j" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//') == "" ]]; then log "Fixing JSON $j"