chore: cleanup pyproject, vendor script, and add restart-services.sh
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 42 KiB |
@@ -10,6 +10,7 @@ requires-python = ">=3.13"
|
|||||||
dependencies = [
|
dependencies = [
|
||||||
"Flask>=3.0,<4.0",
|
"Flask>=3.0,<4.0",
|
||||||
"aiohttp>=3.9,<4.0",
|
"aiohttp>=3.9,<4.0",
|
||||||
|
"passlib>=1.7.4,<2.0",
|
||||||
"requests-unixsocket>=0.2,<1.0",
|
"requests-unixsocket>=0.2,<1.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
Executable
+9
@@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
systemctl restart nginx
|
||||||
|
systemctl restart vacuum-wall
|
||||||
|
systemctl restart vacuum-walld
|
||||||
|
|
||||||
|
systemctl status vacuum-wall
|
||||||
|
systemctl status vacuum-walld
|
||||||
|
|
||||||
@@ -4,12 +4,9 @@
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
# ---- Library versions ----
|
# ---- Library versions ----
|
||||||
HTMX_VERSION="2.0.4"
|
|
||||||
HTMX_JSON_ENC_VERSION="2.0.0"
|
|
||||||
ACME_VERSION="3.1.3"
|
ACME_VERSION="3.1.3"
|
||||||
|
|
||||||
VENDOR="vendor"
|
VENDOR="vendor"
|
||||||
STATIC="webui/static"
|
|
||||||
|
|
||||||
download() {
|
download() {
|
||||||
local name="$1" url="$2" dest="$3"
|
local name="$1" url="$2" dest="$3"
|
||||||
@@ -21,22 +18,10 @@ download() {
|
|||||||
curl -sfL -o "$dest" "$url"
|
curl -sfL -o "$dest" "$url"
|
||||||
}
|
}
|
||||||
|
|
||||||
download "htmx@${HTMX_VERSION}" \
|
|
||||||
"https://unpkg.com/htmx.org@${HTMX_VERSION}/dist/htmx.min.js" \
|
|
||||||
"${VENDOR}/htmx-${HTMX_VERSION}.min.js"
|
|
||||||
|
|
||||||
download "htmx-ext-json-enc@${HTMX_JSON_ENC_VERSION}" \
|
|
||||||
"https://unpkg.com/htmx-ext-json-enc@${HTMX_JSON_ENC_VERSION}/json-enc.js" \
|
|
||||||
"${VENDOR}/json-enc-${HTMX_JSON_ENC_VERSION}.js"
|
|
||||||
|
|
||||||
download "acme.sh@${ACME_VERSION}" \
|
download "acme.sh@${ACME_VERSION}" \
|
||||||
"https://raw.githubusercontent.com/acmesh-official/acme.sh/${ACME_VERSION}/acme.sh" \
|
"https://raw.githubusercontent.com/acmesh-official/acme.sh/${ACME_VERSION}/acme.sh" \
|
||||||
"${VENDOR}/acme.sh"
|
"${VENDOR}/acme.sh"
|
||||||
|
|
||||||
chmod +x "${VENDOR}/acme.sh"
|
chmod +x "${VENDOR}/acme.sh"
|
||||||
|
|
||||||
# Symlinks in webui/static/ select the active version
|
|
||||||
ln -sf "../../vendor/htmx-${HTMX_VERSION}.min.js" "${STATIC}/htmx.min.js"
|
|
||||||
ln -sf "../../vendor/json-enc-${HTMX_JSON_ENC_VERSION}.js" "${STATIC}/json-enc.js"
|
|
||||||
|
|
||||||
echo "[done] All libraries vendored."
|
echo "[done] All libraries vendored."
|
||||||
|
|||||||
Reference in New Issue
Block a user