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 e9cb313
Show file tree
Hide file tree
Showing 2 changed files with 14 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
12 changes: 12 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,16 @@

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 e9cb313

Please sign in to comment.