add-hugo-build #5

Merged
gec merged 18 commits from add-hugo-build into main 2024-03-15 12:02:22 +00:00
3 changed files with 8 additions and 1 deletions
Showing only changes of commit 600dd1c30a - Show all commits

View file

@ -20,6 +20,8 @@ if [[ $currentHash == $newHash ]]
echo "Nothing to do"
else
echo $currentHash > $HASHFILEDIR/$hashfilename
echo "Generate .netrc file"
generate-netrc-file
echo "Downloading website data"
get-website-data $filename
unzip-website-data $filename

View file

@ -1,5 +1,10 @@
#!/bin/bash
# TODO provide GITHOST
function generate-netrc-file() {
echo "machine $GITHOST password $AUTHTOKEN" > ~/.netrc
}
function get-website-data() {
curl -H "Authorization: token $AUTHTOKEN" -o $SOURCEDIR/$1 $GITREPOURL
}

View file

@ -6,7 +6,7 @@ function main()
{
{
upgradeSystem
apt-get install -qqy unzip rsync jq imagemagick curl
apt-get install -qqy unzip rsync jq imagemagick curl hugo
install -d /etc/lein/
install -m 0700 /tmp/entrypoint.sh /