diff options
Generate script checks for folder and install script installs required apps and checks for folder.
2 files changed, 14 insertions, 1 deletions
| -rw-r--r-- | generate.sh | 7 | ||||
| -rw-r--r-- | install-ssg5-lowdown.sh | 8 |
diff --git a/generate.sh b/generate.sh index 3f46687..4b98525 100644 --- a/generate.sh +++ b/generate.sh @@ -1,2 +1,7 @@ +#! /bin/sh + +if [ ! -d "website" ]; then + sudo -u www-data mkdir website +fi rm -rf website/.files -ssg5 src website "Syndamia.com" "https://www.syndamia.com" +ssg5 src website "Syndamia" "https://www.syndamia.com" diff --git a/install-ssg5-lowdown.sh b/install-ssg5-lowdown.sh index 38b12f4..3f75b6a 100644 --- a/install-ssg5-lowdown.sh +++ b/install-ssg5-lowdown.sh @@ -1,5 +1,9 @@ +#!/bin/sh + cd /tmp +sudo apt install -y curl git make gcc + echo "Installing ssg5" curl -s https://rgz.ee/bin/ssg5 > ssg5 @@ -8,6 +12,9 @@ mv ssg5 /usr/bin/ echo "Installing lowdown" +if [ -d "lowdown" ]; then + rm -rf lowdown +fi git clone https://github.com/kristapsdz/lowdown cd lowdown/ ./configure @@ -15,3 +22,4 @@ make sudo make install echo "Done" + |