22 lines
409 B
Bash
Executable file
22 lines
409 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# A script for updating the website
|
|
# Made by sugary :3
|
|
# Adapted by yukijoou
|
|
|
|
set -e
|
|
|
|
WEBSITE_NAME="sugary.kemonomimi.gay"
|
|
WEBSITES_PATH="$HOME/www"
|
|
|
|
BACKUP_DIR=$(mktemp -d)
|
|
|
|
cp -rf "$WEBSITES_PATH" $BACKUP_DIR/$WEBSITE_NAME.bak
|
|
echo "Made backup at $BACKUP_DIR"
|
|
|
|
rm -rf "$WEBSITES_PATH"
|
|
mkdir -p "$WEBSITES_PATH"
|
|
cp -rf src/* "$WEBSITES_PATH"
|
|
|
|
echo "Installed $WEBSITE_NAME at $WEBSITES_PATH"
|
|
|