Write script log
This commit is contained in:
parent
fce2368393
commit
159dbe4b34
@ -3,6 +3,10 @@
|
||||
# stop on error
|
||||
set -e -v
|
||||
|
||||
{
|
||||
# Log date
|
||||
date
|
||||
|
||||
# check if initial git run
|
||||
if [ ! -d /repo ]; then
|
||||
# yes - repo needs to be cloned
|
||||
@ -18,3 +22,4 @@ hugo && \
|
||||
rm -rf /usr/share/nginx/html/* && \
|
||||
cp -R /repo/public/* /usr/share/nginx/html
|
||||
|
||||
} 2>&1 > /var/log/blogker-pull-n-build.log
|
||||
|
Loading…
Reference in New Issue
Block a user