builder.sh 600 B

123456789101112131415161718192021
  1. if [ ! -f /rathena/login-server ]; then
  2. export runBuild=1;
  3. elif [ ! -f /rathena/char-server ]; then
  4. export runBuild=1;
  5. elif [ ! -f /rathena/map-server ]; then
  6. export runBuild=1;
  7. else
  8. export runBuild=0;
  9. fi
  10. if [ "${runBuild}" -eq "1" ]; then
  11. ### checking that ./configure has ran by looking for make file
  12. if [ ! -f /rathena/make ]; then
  13. echo "Warning: ./configure will be executed with provided values";
  14. echo "Make sure you have set the variables you want in the docker-compose.yml file";
  15. echo $BUILDER_CONFIGURE
  16. ./configure $BUILDER_CONFIGURE
  17. fi
  18. make clean server;
  19. fi