test.sh 432 B

123456789101112131415161718
  1. #!/bin/sh
  2. if [ ! -f "./config/Server.json" ];
  3. then
  4. cp ./conf/Server.json ./config/Server.json
  5. echo "Server.json copied from /conf to /config"
  6. fi
  7. if [ ! -f "./config/file.json" ];
  8. then
  9. cp ./conf/file.json ./config/file.json
  10. echo "file.json copied from /conf to /config"
  11. fi
  12. if [ ! -f "./config/Custom.json" ];
  13. then
  14. cp ./conf/Custom.json ./config/Custom.json
  15. echo "file.json copied from /conf to /config"
  16. fi
  17. npm run start