Initial commit (I feel unsafe)

This commit is contained in:
2026-01-16 00:11:58 -08:00
commit d69daa37bf
121 changed files with 4153 additions and 0 deletions

22
vikunja_server-setup Normal file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
echo -e "\n[+] setting up vikunja\n\n-------\n"
# shellcheck source=vikunja_server-env
. "${HOME}"/"${USER}"-env
mkdir -p "${VOLUME_PATH}"/{files,db}
envsubst <"${HOME}"/"${USER}"-compose_template.yaml >"${HOME}"/"${USER}"-compose.yaml
sudo docker compose -f "${HOME}"/"${USER}"-compose.yaml up -d
echo "[+] restoring from backup..."
sudo docker compose -f "${HOME}"/"${USER}"-compose.yaml stop
rm -r "${VOLUME_PATH:?}"/*
rclone copy "${BUCKET_PATH}" "${VOLUME_PATH}" -v
sudo docker compose -f "${HOME}"/"${USER}"-compose.yaml start