1234567891011121314151617 |
- #!/bin/bash
- python3 sitegen.py || {
- echo 'fail_generating_the_site'
- exit 1
- }
- sudo rm -r /var/www/alucho || {
- echo 'fail_deleting_target_folder'
- exit 2
- }
- sudo cp -r build /var/www/alucho || {
- echo 'fail_copying_site'
- exit 3
- }
- sudo service caddy restart || {
- echo 'fail_restarting_caddy'
- exit 4
- }
|