- #!/bin/bash
- cp -r dist/ dist-hipo/
- tar -zcvf dist-hipo.tar.gz ./dist-hipo
- scp dist-hipo.tar.gz /usr/share/nginx/html
- rm -rf dist-hipo
- rm -f dist-hipo.tar.gz
- cd /usr/share/nginx/html
- mv dist-hipo/ dist-hipo-bak-$(date +%Y-%m-%d-%H:%M:%S)/
- tar -zxvf dist-hipo.tar.gz
- rm -f dist-hipo.tar.gz
|