test.sh 441 B

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