From ae87fcf0aea5144579761244e9ae1d242fd623ce Mon Sep 17 00:00:00 2001 From: Radar231 Date: Sun, 1 Aug 2021 19:06:22 -0400 Subject: [PATCH] cleaned up paths with variables --- build_static_website.sh | 11 +++++++---- deploy_static_website.sh | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/build_static_website.sh b/build_static_website.sh index 4673378..6d1fe8f 100755 --- a/build_static_website.sh +++ b/build_static_website.sh @@ -1,7 +1,10 @@ #!/bin/bash -cd /mnt/k8s-storage/wikis/website-wiki/mywiki/ -sudo tiddlywiki --rendertiddlers [!is[system]!tag[Draft]] $:/rdr231/templates/static.tiddler.html static text/plain --rendertiddler $:/rdr231/templates/static.template.css static/static.css text/plain -sudo rsync -avv --delete /mnt/k8s-storage/wikis/website-wiki/mywiki/output/static/ /mnt/k8s-storage/delfax/website/ -sudo chmod -R o+r /mnt/k8s-storage/delfax/website/* +wikiPath='/mnt/k8s-storage/wikis/website-wiki/mywiki' +devWebsite='/mnt/k8s-storage/delfax/website' + +cd ${wikiPath} +sudo tiddlywiki --rendertiddlers [!is[system]!tag[Draft]] $:/rdr231/templates/static.tiddler.html static text/plain --rendertiddler $:/rdr231/templates/static.template.css static/static.css text/plain +sudo rsync -avv --delete ${wikiPath}/output/static/ ${devWebsite}/ +sudo chmod -R o+r ${devWebsite}/* diff --git a/deploy_static_website.sh b/deploy_static_website.sh index 5c1a07a..a8180d7 100755 --- a/deploy_static_website.sh +++ b/deploy_static_website.sh @@ -1,7 +1,7 @@ #!/bin/bash devWebsite='/mnt/k8s-storage/delfax/website' -sitePath='/home/rmorrow/docker/nginx_radar231.com/radar231.com' +sitePath='/home/rmorrow/docker/docker_nginx-radar231.com/radar231.com' rsync -avv --delete -e "ssh -p 50022" ${devWebsite}/ radar231.com:${sitePath}/html/ ssh -p 50022 radar231.com cp -r ${sitePath}/images ${sitePath}/html/