diff --git a/build.sh b/build.sh deleted file mode 100755 index 86d54da..0000000 --- a/build.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -# Build static site -hugo - -# Build search -./pagefind --site public/ - -# correct permissions -sudo chown -R 1000:1000 public -sudo chmod -R 755 public diff --git a/post.sh b/post.sh deleted file mode 100755 index e3cd597..0000000 --- a/post.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - -POSTNAME=$1 - -if [[ -z $1 ]]; then - echo "needs argument: postname" - exit 1 -fi - -hugo new content content/posts/${POSTNAME}.md - -echo "Create content/posts/${POSTNAME}.md. Remember to set the draft flag correctly!" diff --git a/update.sh b/update.sh deleted file mode 100755 index 82e6bdc..0000000 --- a/update.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash - -# Variables -SOURCE_DIR="./public" -DEST_USER="demian" # replace with your SSH username -DEST_HOST="pyte.dev" -DEST_DIR="/opt/docker/website/" -SSH_KEY="/home/demian/.ssh/id_ed25519-privat" # replace with your private key path if different - -# Copy folder using scp with SSH key -scp -i "$SSH_KEY" -r "$SOURCE_DIR" "$DEST_USER@$DEST_HOST:$DEST_DIR" - -# Optional: print status -if [ $? -eq 0 ]; then - echo "Folder '$SOURCE_DIR' successfully copied to $DEST_HOST:$DEST_DIR" -else - echo "Error copying folder. Check your SSH key and connection." -fi