Microweb_blog/script.sh

14 lines
236 B
Bash

#!/bin/bash
# Clean output folder
rm -r /root/pelican/output/*
# Generate the website
pelican
# Clean html folder
rm -r /usr/share/nginx/html/*
# Move the website from output folder to html folder
mv output/* /usr/share/nginx/html/