Compare commits

...
Author SHA1 Message Date
push-app-to-main[bot] 1e2f8e20b6 Add windmill (ct) 2026-11-23 07:46:57 +00:00
community-scripts-pr-app[bot]andgithub-actions[bot] bf22f65f51 Update CHANGELOG.md (#18966)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-23 07:10:06 +00:00
cwmoriarty 744cf874cb airconnect: fix disabled service handling, static binary cleanup, and flag overrides (#18955) 2026-11-23 08:09:35 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] c398c736b8 Update CHANGELOG.md (#18965)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-23 07:08:54 +00:00
push-app-to-main[bot]andCanbiZ f00fecdbc8 Anubis (#18926)
* Add anubis (ct)

* Enable ARM64 support in anubis.sh

---------

Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
Co-authored-by: CanbiZ (MickLesk) <47820557+MickLesk@users.noreply.github.com>
2026-11-23 08:08:24 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] b440c75190 Update CHANGELOG.md (#18964)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-23 06:55:49 +00:00
github-actions[bot] 29e13279fe bulwark: bump Node.js from 24 to 26 (#18957)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-23 07:55:18 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] 5a62c1778c Update CHANGELOG.md (#18963)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-23 06:42:25 +00:00
community-scripts-pr-app[bot]andgithub-actions[bot] d8ae438fba Update CHANGELOG.md (#18962)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-23 06:42:12 +00:00
push-app-to-main[bot]andCanbiZ 6d575cbb36 Oracle Linux (#18945)
* Add oraclelinux (ct)

* Clean up comments in oraclelinux.sh

Remove comments about script sourcing and local checkout.

---------

Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
Co-authored-by: CanbiZ (MickLesk) <47820557+MickLesk@users.noreply.github.com>
2026-11-23 07:41:56 +01:00
community-scripts-pr-app[bot]andgithub-actions[bot] b546a5394c Update CHANGELOG.md (#18961)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-23 06:41:45 +00:00
push-app-to-main[bot]andCanbiZ abf6bde7e6 Kali Linux (#18946)
* Add kalilinux (ct)

* Clean up comments in kalilinux.sh

Removed comments about the engine source and local checkout behavior.

---------

Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
Co-authored-by: CanbiZ (MickLesk) <47820557+MickLesk@users.noreply.github.com>
2026-11-23 07:41:39 +01:00
push-app-to-main[bot]andCanbiZ 337042f292 Linux Mint (#18948)
* Add linuxmint (ct)

* Clean up comments in linuxmint.sh

Removed comments about the script's origin and usage.

---------

Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
Co-authored-by: CanbiZ (MickLesk) <47820557+MickLesk@users.noreply.github.com>
2026-11-23 07:41:14 +01:00
15 changed files with 449 additions and 14 deletions

No files matched your search

+16
View File
@@ -587,6 +587,22 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
</details>
## 2026-11-23
### 🆕 New Scripts
- Anubis [@opastorello](https://github.com/opastorello) ([#18926](https://github.com/community-scripts/ProxmoxVE/pull/18926))
- Oracle Linux [@MickLesk](https://github.com/MickLesk) ([#18945](https://github.com/community-scripts/ProxmoxVE/pull/18945))
- Kali Linux [@MickLesk](https://github.com/MickLesk) ([#18946](https://github.com/community-scripts/ProxmoxVE/pull/18946))
- Linux Mint [@MickLesk](https://github.com/MickLesk) ([#18948](https://github.com/community-scripts/ProxmoxVE/pull/18948))
### 🚀 Updated Scripts
- #### 🐞 Bug Fixes
- airconnect: fix disabled service restart, static binary cleanup, and flag overrides [@cwmoriarty](https://github.com/cwmoriarty) ([#18955](https://github.com/community-scripts/ProxmoxVE/pull/18955))
- bulwark: bump Node.js from 24 to 26 [@github-actions[bot]](https://github.com/github-actions[bot]) ([#18957](https://github.com/community-scripts/ProxmoxVE/pull/18957))
## 2026-11-22
### 🆕 New Scripts
+9 -6
View File
@@ -34,20 +34,23 @@ function update_script() {
if check_for_gh_release "airconnect" "philippe44/AirConnect"; then
msg_info "Stopping AirConnect"
systemctl stop airupnp aircast
if systemctl is-active --quiet airupnp; then systemctl stop airupnp; fi
if systemctl is-active --quiet aircast; then systemctl stop aircast; fi
msg_ok "Stopped AirConnect"
CLEAN_INSTALL=1 CLEAN_INSTALL_KEEP="airupnp.xml aircast.xml" fetch_and_deploy_gh_release "airconnect" "philippe44/AirConnect" "prebuild" "latest" "/opt/airconnect" "AirConnect-*.zip"
msg_info "Configuring AirConnect"
chmod +x /opt/airconnect/airupnp-linux-$(arch_resolve x86_64 aarch64) /opt/airconnect/aircast-linux-$(arch_resolve x86_64 aarch64)
ln -sf /opt/airconnect/airupnp-linux-$(arch_resolve x86_64 aarch64) /opt/airconnect/airupnp
ln -sf /opt/airconnect/aircast-linux-$(arch_resolve x86_64 aarch64) /opt/airconnect/aircast
find /opt/airconnect -maxdepth 1 -type f ! -name "air*linux-$(arch_resolve x86_64 aarch64)*" ! -name "airupnp" ! -name "aircast" ! -name "*.xml" -delete
ARCH=$(arch_resolve x86_64 aarch64)
chmod +x "/opt/airconnect/airupnp-linux-${ARCH}" "/opt/airconnect/aircast-linux-${ARCH}"
ln -sf "/opt/airconnect/airupnp-linux-${ARCH}" /opt/airconnect/airupnp
ln -sf "/opt/airconnect/aircast-linux-${ARCH}" /opt/airconnect/aircast
find /opt/airconnect -maxdepth 1 -type f ! -name "airupnp-linux-${ARCH}" ! -name "aircast-linux-${ARCH}" ! -name "*.xml" -delete
msg_ok "Configured AirConnect"
msg_info "Starting AirConnect"
systemctl start airupnp aircast
if systemctl is-enabled --quiet airupnp; then systemctl start airupnp; fi
if systemctl is-enabled --quiet aircast; then systemctl start aircast; fi
msg_ok "Started AirConnect"
msg_ok "Updated successfully!"
fi
+58
View File
@@ -0,0 +1,58 @@
#!/usr/bin/env bash
_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func"
source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func")
# Copyright (c) 2021-2026 community-scripts ORG
# Author: Nicolas Pastorello (opastorello)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://anubis.techaro.lol/
APP="Anubis"
var_tags="${var_tags:-proxy;security}"
var_cpu="${var_cpu:-1}"
var_ram="${var_ram:-512}"
var_disk="${var_disk:-4}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
var_unprivileged="${var_unprivileged:-1}"
var_arm64="${var_arm64:-yes}"
export var_anubis_target="${var_anubis_target:-}"
header_info "$APP"
variables
color
catch_errors
function update_script() {
header_info
check_container_storage
check_container_resources
if [[ ! -f /etc/anubis/main.env ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
if check_for_gh_release "anubis" "TecharoHQ/anubis"; then
msg_info "Stopping Service"
systemctl stop anubis@main
msg_ok "Stopped Service"
fetch_and_deploy_gh_release "anubis" "TecharoHQ/anubis" "binary"
msg_info "Starting Service"
systemctl start anubis@main
msg_ok "Started Service"
msg_ok "Updated successfully!"
fi
exit
}
start
build_container
description
msg_ok "Completed Successfully!\n"
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW}Access it using the following URL:${CL}"
echo -e "${GATEWAY}${BGN}http://${IP}:8923${CL}"
+1 -1
View File
@@ -38,7 +38,7 @@ function update_script() {
systemctl stop bulwark
msg_ok "Stopped Bulwark"
NODE_VERSION="24" setup_nodejs
NODE_VERSION="26" setup_nodejs
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "bulwark" "bulwarkmail/webmail" "prebuild" "latest" "/opt/bulwark" "bulwark-standalone-*-linux-$(arch_resolve).tar.gz"
msg_info "Starting Bulwark"
+41
View File
@@ -0,0 +1,41 @@
#!/usr/bin/env bash
_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func"
source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func")
# Copyright (c) 2021-2026 community-scripts ORG
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://www.kali.org/
APP="Kali Linux"
var_tags="${var_tags:-os}"
var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-2048}"
var_disk="${var_disk:-8}"
var_os="${var_os:-kali}"
var_version="${var_version:-current}"
#var_arm64="${var_arm64:-no}" # unset = ask the user; set yes/no only when verified
var_unprivileged="${var_unprivileged:-1}"
header_info "$APP"
variables
color
catch_errors
function update_script() {
header_info
check_container_storage
check_container_resources
msg_info "Updating $APP LXC"
$STD apt update
$STD apt upgrade -y
msg_ok "Updated $APP LXC"
cleanup_lxc
exit
}
start
build_container
description
msg_ok "Completed successfully!"
msg_custom "🚀" "${GN}" "${APP} setup has been successfully initialized!"
+41
View File
@@ -0,0 +1,41 @@
#!/usr/bin/env bash
_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func"
source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func")
# Copyright (c) 2021-2026 community-scripts ORG
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://linuxmint.com/
APP="Linux Mint"
var_tags="${var_tags:-os}"
var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-2048}"
var_disk="${var_disk:-8}"
var_os="${var_os:-mint}"
var_version="${var_version:-zena}"
var_arm64="${var_arm64:-no}" # linuxcontainers publishes this one for amd64 only
var_unprivileged="${var_unprivileged:-1}"
header_info "$APP"
variables
color
catch_errors
function update_script() {
header_info
check_container_storage
check_container_resources
msg_info "Updating $APP LXC"
$STD apt update
$STD apt upgrade -y
msg_ok "Updated $APP LXC"
cleanup_lxc
exit
}
start
build_container
description
msg_ok "Completed successfully!"
msg_custom "🚀" "${GN}" "${APP} setup has been successfully initialized!"
+41
View File
@@ -0,0 +1,41 @@
#!/usr/bin/env bash
_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func"
source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func")
# Copyright (c) 2021-2026 community-scripts ORG
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://www.oracle.com/linux/
APP="Oracle Linux"
var_tags="${var_tags:-os}"
var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-2048}"
var_disk="${var_disk:-8}"
var_os="${var_os:-oracle}"
var_version="${var_version:-9}"
var_arm64="${var_arm64:-yes}"
var_unprivileged="${var_unprivileged:-1}"
header_info "$APP"
variables
color
catch_errors
function update_script() {
header_info
check_container_storage
check_container_resources
msg_info "Updating $APP LXC"
$STD dnf -y upgrade
msg_ok "Updated $APP LXC"
cleanup_lxc
exit
}
start
build_container
description
msg_ok "Completed successfully!"
msg_custom "🚀" "${GN}" "${APP} setup has been successfully initialized!"
+59
View File
@@ -0,0 +1,59 @@
#!/usr/bin/env bash
_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func"
source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func")
# Copyright (c) 2021-2026 community-scripts ORG
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/windmill-labs/windmill
APP="Windmill"
var_tags="${var_tags:-automation;workflow;scripts}"
var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-2048}"
var_disk="${var_disk:-10}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
var_arm64="${var_arm64:-no}" # upstream ships the CE binary for amd64 only
var_unprivileged="${var_unprivileged:-1}"
header_info "$APP"
variables
color
catch_errors
function update_script() {
header_info
check_container_storage
check_container_resources
if [[ ! -f /opt/windmill/windmill ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
if check_for_gh_release "windmill" "windmill-labs/windmill"; then
msg_info "Stopping Windmill"
systemctl stop windmill
msg_ok "Stopped Windmill"
setup_uv
NODE_VERSION="24" NODE_MODULE="bun" setup_nodejs
fetch_and_deploy_gh_release "windmill" "windmill-labs/windmill" "singlefile" "latest" "/opt/windmill" "windmill-amd64"
USE_ORIGINAL_FILENAME="true" fetch_and_deploy_gh_release "windmill-duckdb" "windmill-labs/windmill" "singlefile" "latest" "/opt/windmill" "windmill_duckdb_runner"
msg_info "Starting Windmill"
systemctl start windmill
msg_ok "Started Windmill"
msg_ok "Updated successfully!"
fi
exit
}
start
build_container
description
msg_ok "Completed Successfully!\n"
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW}Access it using the following URL:${CL}"
echo -e "${GATEWAY}${BGN}http://${IP}:8000${CL}"
+13 -6
View File
@@ -16,10 +16,15 @@ update_os
fetch_and_deploy_gh_release "airconnect" "philippe44/AirConnect" "prebuild" "latest" "/opt/airconnect" "AirConnect-*.zip"
msg_info "Configuring AirConnect"
chmod +x /opt/airconnect/airupnp-linux-$(arch_resolve x86_64 aarch64) /opt/airconnect/aircast-linux-$(arch_resolve x86_64 aarch64)
ln -sf /opt/airconnect/airupnp-linux-$(arch_resolve x86_64 aarch64) /opt/airconnect/airupnp
ln -sf /opt/airconnect/aircast-linux-$(arch_resolve x86_64 aarch64) /opt/airconnect/aircast
find /opt/airconnect -maxdepth 1 -type f ! -name "air*linux-$(arch_resolve x86_64 aarch64)*" ! -name "airupnp" ! -name "aircast" ! -name "*.xml" -delete
ARCH=$(arch_resolve x86_64 aarch64)
chmod +x "/opt/airconnect/airupnp-linux-${ARCH}" "/opt/airconnect/aircast-linux-${ARCH}"
ln -sf "/opt/airconnect/airupnp-linux-${ARCH}" /opt/airconnect/airupnp
ln -sf "/opt/airconnect/aircast-linux-${ARCH}" /opt/airconnect/aircast
find /opt/airconnect -maxdepth 1 -type f ! -name "airupnp-linux-${ARCH}" ! -name "aircast-linux-${ARCH}" ! -name "*.xml" -delete
cat <<EOF >/etc/default/airconnect
AIRUPNP_OPTS="-l 1000:2000"
AIRCAST_OPTS=""
EOF
msg_ok "Configured AirConnect"
msg_info "Creating Services"
@@ -33,7 +38,8 @@ Wants=network-online.target
Type=simple
User=root
WorkingDirectory=/opt/airconnect
ExecStart=/opt/airconnect/airupnp -l 1000:2000 -Z -x /opt/airconnect/airupnp.xml
EnvironmentFile=-/etc/default/airconnect
ExecStart=/opt/airconnect/airupnp -Z -x /opt/airconnect/airupnp.xml \$AIRUPNP_OPTS
Restart=on-failure
RestartSec=5
@@ -52,7 +58,8 @@ Wants=network-online.target
Type=simple
User=root
WorkingDirectory=/opt/airconnect
ExecStart=/opt/airconnect/aircast -Z -x /opt/airconnect/aircast.xml
EnvironmentFile=-/etc/default/airconnect
ExecStart=/opt/airconnect/aircast -Z -x /opt/airconnect/aircast.xml \$AIRCAST_OPTS
Restart=on-failure
RestartSec=5
+38
View File
@@ -0,0 +1,38 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2026 community-scripts ORG
# Author: Nicolas Pastorello (opastorello)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://anubis.techaro.lol/
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
fetch_and_deploy_gh_release "anubis" "TecharoHQ/anubis" "binary"
msg_info "Configuring Anubis"
cp /usr/share/doc/anubis/botPolicies.yaml /etc/anubis/main.botPolicies.yaml
cat <<EOF >/etc/anubis/main.env
BIND=:8923
BIND_NETWORK=tcp
METRICS_BIND=:9090
METRICS_BIND_NETWORK=tcp
DIFFICULTY=4
SERVE_ROBOTS_TXT=0
COOKIE_SECURE=false
USE_REMOTE_ADDRESS=true
POLICY_FNAME=/etc/anubis/main.botPolicies.yaml
ED25519_PRIVATE_KEY_HEX=$(openssl rand -hex 32)
TARGET=${var_anubis_target:-http://localhost:3000}
EOF
systemctl enable -q --now anubis@main
msg_ok "Configured Anubis"
motd_ssh
customize
cleanup_lxc
+1 -1
View File
@@ -13,7 +13,7 @@ setting_up_container
network_check
update_os
NODE_VERSION="24" setup_nodejs
NODE_VERSION="26" setup_nodejs
fetch_and_deploy_gh_release "bulwark" "bulwarkmail/webmail" "prebuild" "latest" "/opt/bulwark" "bulwark-standalone-*-linux-$(arch_resolve).tar.gz"
+22
View File
@@ -0,0 +1,22 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2026 community-scripts ORG
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://www.kali.org/
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
msg_info "Installing Base Dependencies"
$STD apt install -y curl wget ca-certificates procps
msg_ok "Installed Base Dependencies"
motd_ssh
customize
cleanup_lxc
+22
View File
@@ -0,0 +1,22 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2026 community-scripts ORG
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://linuxmint.com/
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
msg_info "Installing Base Dependencies"
$STD apt install -y curl wget ca-certificates
msg_ok "Installed Base Dependencies"
motd_ssh
customize
cleanup_lxc
+22
View File
@@ -0,0 +1,22 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2026 community-scripts ORG
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://www.oracle.com/linux/
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
msg_info "Installing Base Dependencies"
$STD dnf install -y curl ca-certificates hostname
msg_ok "Installed Base Dependencies"
motd_ssh
customize
cleanup_lxc
+65
View File
@@ -0,0 +1,65 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2026 community-scripts ORG
# Author: MickLesk (CanbiZ)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://github.com/windmill-labs/windmill
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
PG_VERSION="18" setup_postgresql
PG_DB_NAME="windmill" PG_DB_USER="windmill" setup_postgresql_db
setup_uv
NODE_VERSION="24" NODE_MODULE="bun" setup_nodejs
fetch_and_deploy_gh_release "windmill" "windmill-labs/windmill" "singlefile" "latest" "/opt/windmill" "windmill-amd64"
USE_ORIGINAL_FILENAME="true" fetch_and_deploy_gh_release "windmill-duckdb" "windmill-labs/windmill" "singlefile" "latest" "/opt/windmill" "windmill_duckdb_runner"
msg_info "Creating Windmill Database Roles"
# Windmill's migrations can only create these as superuser (windmill_admin needs BYPASSRLS)
$STD sudo -u postgres psql -c "CREATE ROLE windmill_user; CREATE ROLE windmill_admin WITH BYPASSRLS; GRANT windmill_user TO windmill_admin; GRANT windmill_admin, windmill_user TO windmill;"
msg_ok "Created Windmill Database Roles"
msg_info "Configuring Windmill"
mkdir -p /opt/windmill_data
cat <<EOF >/opt/windmill_data/.env
DATABASE_URL=postgres://windmill:${PG_DB_PASS}@127.0.0.1:5432/windmill?sslmode=disable
MODE=standalone
BASE_URL=http://${LOCAL_IP}:8000
EOF
chmod 600 /opt/windmill_data/.env
msg_ok "Configured Windmill"
msg_info "Creating Windmill Service"
cat <<EOF >/etc/systemd/system/windmill.service
[Unit]
Description=Windmill
After=network.target postgresql.service
Requires=postgresql.service
[Service]
Type=simple
User=root
WorkingDirectory=/opt/windmill
EnvironmentFile=/opt/windmill_data/.env
# ~/.windmill is the version file, but Windmill keeps its standalone bundles in \$HOME/.windmill
Environment=HOME=/opt/windmill_data
Environment=WINDMILL_DIR=/opt/windmill_data
ExecStart=/opt/windmill/windmill
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now windmill
msg_ok "Created Windmill Service"
motd_ssh
customize
cleanup_lxc