Remove obsolete scripts
Build & Deploy / deploy (push) Successful in 26s

This commit is contained in:
2026-06-06 19:21:34 +02:00
parent 4e5d0f509a
commit b6d45c9b61
3 changed files with 0 additions and 41 deletions
-11
View File
@@ -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
-12
View File
@@ -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!"
-18
View File
@@ -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