Skip to content

Commit

Permalink
fix config bindability
Browse files Browse the repository at this point in the history
  • Loading branch information
zekroTJA committed Mar 26, 2024
1 parent 245106c commit 80f4129
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ RUN bash ./scripts/download-latest.sh atm-server.zip \
&& rm atm-server.zip \
&& mv Server-Files-*/* .

RUN mv ./config ./config.tmp

RUN chmod +x ./startserver.sh

RUN chmod +x scripts/*.sh
Expand Down
11 changes: 11 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,15 @@

set -e

if [ -z "$(ls -A ./config 2> /dev/null)" ]; then
echo "----- Initializing config directory -----"
if [ -f "config.tmp" ]; then
mv ./config.tmp ./config
else
mv ./config.tmp/* ./config/
fi
else
echo "----- Config already initialized -----"
fi

ATM9_INSTALL_ONLY=true ./startserver.sh

0 comments on commit 80f4129

Please sign in to comment.