Compare commits

..

2 Commits

Author SHA1 Message Date
Slaviša Arežina
704fca8cca Update zabbix.sh 2025-10-11 22:38:26 +02:00
CanbiZ
1243c3df7f Zabbix: various bugfixes agent1/agent2 2025-10-11 21:44:29 +02:00
14 changed files with 231 additions and 292 deletions

View File

@@ -10,39 +10,12 @@
> [!CAUTION]
Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit the project's popularity for potentially malicious purposes.
## 2025-10-14
## 2025-10-13
### 🚀 Updated Scripts
- #### 🐞 Bug Fixes
- GLPI: fix version 11 [@opastorello](https://github.com/opastorello) ([#8238](https://github.com/community-scripts/ProxmoxVE/pull/8238))
- Keycloak: Fix typo in update function [@tremor021](https://github.com/tremor021) ([#8316](https://github.com/community-scripts/ProxmoxVE/pull/8316))
- #### 🔧 Refactor
- fix: adjust configarr to use binaries [@BlackDark](https://github.com/BlackDark) ([#8254](https://github.com/community-scripts/ProxmoxVE/pull/8254))
## 2025-10-12
### 🚀 Updated Scripts
- #### 🐞 Bug Fixes
- Immich: add Debian Testing repo [@vhsdream](https://github.com/vhsdream) ([#8310](https://github.com/community-scripts/ProxmoxVE/pull/8310))
- Tinyauth: Fix install issues for v4 [@tremor021](https://github.com/tremor021) ([#8309](https://github.com/community-scripts/ProxmoxVE/pull/8309))
## 2025-10-11
### 🚀 Updated Scripts
- #### 🐞 Bug Fixes
- Zabbix: various bugfixes agent1/agent2 [@MickLesk](https://github.com/MickLesk) ([#8294](https://github.com/community-scripts/ProxmoxVE/pull/8294))
- wger: fix python and pip install [@MickLesk](https://github.com/MickLesk) ([#8295](https://github.com/community-scripts/ProxmoxVE/pull/8295))
- searxng: add msgspec as dependency [@MickLesk](https://github.com/MickLesk) ([#8293](https://github.com/community-scripts/ProxmoxVE/pull/8293))
- keycloak: fix update check [@MickLesk](https://github.com/MickLesk) ([#8275](https://github.com/community-scripts/ProxmoxVE/pull/8275))
- komga: fix update check [@MickLesk](https://github.com/MickLesk) ([#8285](https://github.com/community-scripts/ProxmoxVE/pull/8285))

View File

@@ -29,19 +29,15 @@ function update_script() {
$STD apk -U upgrade
msg_ok "Updated packages"
msg_info "Updating Tinyauth"
RELEASE=$(curl -s https://api.github.com/repos/steveiliop56/tinyauth/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
if [ "${RELEASE}" != "$(cat ~/.tinyauth 2>/dev/null)" ] || [ ! -f ~/.tinyauth ]; then
msg_info "Stopping Service"
$STD service tinyauth stop
msg_ok "Service Stopped"
msg_info "Updating Tinyauth"
if [ "${RELEASE}" != "$(cat /opt/tinyauth_version.txt)" ] || [ ! -f /opt/tinyauth_version.txt ]; then
$STD service tinyauth stop
rm -f /opt/tinyauth/tinyauth
curl -fsSL "https://github.com/steveiliop56/tinyauth/releases/download/v${RELEASE}/tinyauth-amd64" -o /opt/tinyauth/tinyauth
chmod +x /opt/tinyauth/tinyauth
echo "${RELEASE}" >~/.tinyauth
msg_ok "Updated Tinyauth"
echo "${RELEASE}" >/opt/tinyauth_version.txt
msg_info "Restarting Tinyauth"
$STD service tinyauth start
msg_ok "Restarted Tinyauth"

View File

@@ -10,7 +10,7 @@ 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_version="${var_version:-12}"
var_unprivileged="${var_unprivileged:-1}"
header_info "$APP"
@@ -28,20 +28,27 @@ function update_script() {
exit
fi
if check_for_gh_release "configarr" "raydak-labs/configarr"; then
msg_info "Stopping Service"
msg_info "Stopping $APP"
systemctl stop configarr-task.timer
msg_ok "Stopped Service"
msg_ok "Stopped $APP"
msg_info "Updating $APP"
mkdir -p /opt/backup/
mv /opt/configarr/{config.yml,secrets.yml,.env} /opt/backup/
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "configarr" "raydak-labs/configarr" "prebuild" "latest" "/opt/configarr" "configarr-linux-x64.tar.xz"
mv /opt/backup/{config.yml,secrets.yml,.env} /opt/configarr/
rm -rf /opt/backup
mv /opt/configarr/{config.yml,secrets.yml,.env} "/opt/backup/"
rm -rf /opt/configarr
fetch_and_deploy_gh_release "configarr" "raydak-labs/configarr"
mv /opt/backup/{config.yml,secrets.yml,.env} "/opt/configarr/"
cd /opt/configarr
$STD pnpm install
$STD pnpm run build
msg_ok "Updated $APP"
msg_info "Starting Service"
msg_info "Starting $APP"
systemctl start configarr-task.timer
msg_ok "Started Service"
msg_ok "Updated Successfully!"
msg_ok "Started configarr"
rm -rf /opt/backup
msg_ok "Updated Successfully"
fi
exit
}

View File

@@ -39,26 +39,8 @@ function update_script() {
PNPM_VERSION="$(curl -fsSL "https://raw.githubusercontent.com/immich-app/immich/refs/heads/main/package.json" | jq -r '.packageManager | split("@")[1]')"
NODE_VERSION="22" NODE_MODULE="pnpm@${PNPM_VERSION}" setup_nodejs
if [[ ! -f /etc/apt/preferences.d/preferences ]]; then
msg_info "Adding Debian Testing repo"
sed -i 's/ trixie-updates/ trixie-updates testing/g' /etc/apt/sources.list.d/debian.sources
cat <<EOF >/etc/apt/preferences.d/preferences
Package: *
Pin: release a=unstable
Pin-Priority: 450
Package: *
Pin:release a=testing
Pin-Priority: 450
EOF
if [[ -f /etc/apt/preferences.d/immich ]]; then
rm /etc/apt/preferences.d/immich
fi
$STD apt-get update
msg_ok "Added Debian Testing repo"
msg_info "Installing libmimalloc3"
$STD apt-get install -t testing --no-install-recommends libmimalloc3
msg_ok "Installed libmimalloc3"
if dpkg -l | grep -q "libmimalloc2.0"; then
$STD apt-get update && $STD apt-get install -y libmimalloc3
fi
STAGING_DIR=/opt/staging

View File

@@ -27,7 +27,7 @@ function update_script() {
msg_error "No ${APP} Installation Found!"
exit
fi
if check_for_gh_release "keycloak_app" "keycloak/keycloak"; then
if check_for_gh_release "keycloak-app" "keycloak/keycloak"; then
msg_info "Stopping Keycloak"
systemctl stop keycloak
msg_ok "Stopped Keycloak"

View File

@@ -39,18 +39,16 @@ function update_script() {
tar xzf "$temp_file"
cp -rf wger-"$RELEASE"/* /home/wger/src
cd /home/wger/src || exit
$STD pip install -r requirements_prod.txt --ignore-installed
$STD pip install -e .
$STD python3 manage.py migrate
$STD python3 manage.py collectstatic --no-input
$STD yarn install
$STD yarn build:css:sass
$STD python3 manage.py collectstatic --noinput
echo "${RELEASE}" >/opt/${APP}_version.txt
msg_ok "Updated $APP to v${RELEASE}"
msg_info "Starting Service"
msg_info "Starting $APP"
systemctl start wger
msg_ok "Started Service"
msg_ok "Started $APP"
msg_info "Cleaning Up"
rm -rf "$temp_file"

View File

@@ -23,7 +23,7 @@
"ram": 512,
"hdd": 4,
"os": "Debian",
"version": "13"
"version": "12"
}
}
],

View File

@@ -1,103 +1,23 @@
[
{
"name": "rogerfar/rdt-client",
"version": "v2.0.119",
"date": "2025-10-13T23:15:11Z"
"name": "runtipi/runtipi",
"version": "v4.5.0-beta.4",
"date": "2025-10-11T10:48:55Z"
},
{
"name": "jellyfin/jellyfin",
"version": "v10.10.7",
"date": "2025-04-05T19:14:59Z"
},
{
"name": "outline/outline",
"version": "v1.0.0-2",
"date": "2025-10-13T20:23:43Z"
},
{
"name": "hargata/lubelog",
"version": "v1.5.3",
"date": "2025-10-13T19:59:30Z"
},
{
"name": "steveiliop56/tinyauth",
"version": "v4.0.0",
"date": "2025-10-08T16:12:11Z"
},
{
"name": "BerriAI/litellm",
"version": "v1.78.0.rc.2",
"date": "2025-10-13T18:10:50Z"
},
{
"name": "rcourtman/Pulse",
"version": "v4.24.0-rc.3",
"date": "2025-10-13T17:51:08Z"
},
{
"name": "bluenviron/mediamtx",
"version": "v1.15.2",
"date": "2025-10-13T17:03:15Z"
},
{
"name": "jhuckaby/Cronicle",
"version": "v0.9.97",
"date": "2025-10-13T16:13:50Z"
},
{
"name": "sabnzbd/sabnzbd",
"version": "4.5.3",
"date": "2025-08-25T13:59:56Z"
"name": "TandoorRecipes/recipes",
"version": "2.3.2",
"date": "2025-10-11T09:59:27Z"
},
{
"name": "meilisearch/meilisearch",
"version": "latest",
"date": "2025-10-13T14:43:53Z"
"version": "prototype-docker-alpine-3-22-v3",
"date": "2025-10-11T09:04:29Z"
},
{
"name": "node-red/node-red",
"version": "4.1.1",
"date": "2025-10-13T14:23:53Z"
},
{
"name": "n8n-io/n8n",
"version": "n8n@1.114.4",
"date": "2025-10-07T14:28:46Z"
},
{
"name": "prometheus/alertmanager",
"version": "v0.29.0-rc.0",
"date": "2025-10-10T01:13:27Z"
},
{
"name": "Graylog2/graylog2-server",
"version": "7.0.0-beta.4",
"date": "2025-10-13T11:20:35Z"
},
{
"name": "dgtlmoon/changedetection.io",
"version": "0.50.23",
"date": "2025-10-13T09:55:01Z"
},
{
"name": "mattermost/mattermost",
"version": "server/public/v0.1.20",
"date": "2025-10-09T17:22:46Z"
},
{
"name": "SigNoz/signoz",
"version": "v0.97.1",
"date": "2025-10-13T07:42:50Z"
},
{
"name": "zitadel/zitadel",
"version": "v4.3.3",
"date": "2025-10-13T07:17:02Z"
},
{
"name": "moghtech/komodo",
"version": "v1.19.5",
"date": "2025-09-27T20:59:46Z"
"name": "duplicati/duplicati",
"version": "v2.1.2.3-2.1.2.3_beta_2025-10-11",
"date": "2025-10-11T06:49:43Z"
},
{
"name": "morpheus65535/bazarr",
@@ -106,88 +26,28 @@
},
{
"name": "Jackett/Jackett",
"version": "v0.24.124",
"date": "2025-10-13T05:52:57Z"
"version": "v0.24.111",
"date": "2025-10-11T05:50:36Z"
},
{
"name": "firefly-iii/firefly-iii",
"version": "v6.4.2",
"date": "2025-10-07T08:11:58Z"
},
{
"name": "BerriAI/litellm",
"version": "v1.77.7.dev16",
"date": "2025-10-11T00:54:34Z"
},
{
"name": "jeedom/core",
"version": "4.4.20",
"date": "2025-10-13T00:27:04Z"
"date": "2025-10-11T00:27:06Z"
},
{
"name": "esphome/esphome",
"version": "2025.9.3",
"date": "2025-10-01T11:30:07Z"
},
{
"name": "Luligu/matterbridge",
"version": "3.3.2",
"date": "2025-10-12T21:30:43Z"
},
{
"name": "runtipi/runtipi",
"version": "nightly",
"date": "2025-10-12T20:01:20Z"
},
{
"name": "globaleaks/globaleaks-whistleblowing-software",
"version": "v5.0.85",
"date": "2025-10-12T19:55:18Z"
},
{
"name": "booklore-app/booklore",
"version": "v1.6.0",
"date": "2025-10-12T16:09:29Z"
},
{
"name": "ellite/Wallos",
"version": "v4.4.1",
"date": "2025-10-12T15:38:24Z"
},
{
"name": "YunoHost/yunohost",
"version": "debian/12.1.28",
"date": "2025-10-12T14:55:27Z"
},
{
"name": "PrivateBin/PrivateBin",
"version": "2.0.1",
"date": "2025-10-12T10:00:52Z"
},
{
"name": "authelia/authelia",
"version": "v4.39.13",
"date": "2025-10-12T05:45:48Z"
},
{
"name": "gelbphoenix/autocaliweb",
"version": "v0.10.4",
"date": "2025-10-11T19:53:39Z"
},
{
"name": "Stirling-Tools/Stirling-PDF",
"version": "v1.4.0",
"date": "2025-10-11T18:16:32Z"
},
{
"name": "MediaBrowser/Emby.Releases",
"version": "4.9.1.80",
"date": "2025-09-30T20:25:16Z"
},
{
"name": "TandoorRecipes/recipes",
"version": "2.3.2",
"date": "2025-10-11T09:59:27Z"
},
{
"name": "duplicati/duplicati",
"version": "v2.1.2.3-2.1.2.3_beta_2025-10-11",
"date": "2025-10-11T06:49:43Z"
"name": "steveiliop56/tinyauth",
"version": "v4.0.0",
"date": "2025-10-08T16:12:11Z"
},
{
"name": "home-assistant/core",
@@ -209,6 +69,11 @@
"version": "26.0.16",
"date": "2025-10-08T04:44:28Z"
},
{
"name": "rcourtman/Pulse",
"version": "v4.22.0",
"date": "2025-10-09T08:23:58Z"
},
{
"name": "homarr-labs/homarr",
"version": "v1.41.0",
@@ -229,6 +94,11 @@
"version": "v0.12.5",
"date": "2025-10-10T16:30:53Z"
},
{
"name": "dgtlmoon/changedetection.io",
"version": "0.50.21",
"date": "2025-10-10T16:18:56Z"
},
{
"name": "Brandawg93/PeaNUT",
"version": "v5.16.0",
@@ -259,6 +129,11 @@
"version": "v1.7.0",
"date": "2025-09-01T10:10:34Z"
},
{
"name": "n8n-io/n8n",
"version": "n8n@1.114.4",
"date": "2025-10-07T14:28:46Z"
},
{
"name": "semaphoreui/semaphore",
"version": "v2.16.34",
@@ -269,11 +144,26 @@
"version": "v0.18.4",
"date": "2025-04-05T19:12:57Z"
},
{
"name": "zitadel/zitadel",
"version": "v4.3.2",
"date": "2025-10-10T08:39:41Z"
},
{
"name": "moghtech/komodo",
"version": "v1.19.5",
"date": "2025-09-27T20:59:46Z"
},
{
"name": "emqx/emqx",
"version": "e6.0.1-alpha.1",
"date": "2025-10-10T06:57:48Z"
},
{
"name": "SigNoz/signoz",
"version": "v0.97.0",
"date": "2025-10-10T06:52:42Z"
},
{
"name": "nzbgetcom/nzbget",
"version": "v25.4",
@@ -289,6 +179,16 @@
"version": "r1945",
"date": "2025-10-10T02:30:05Z"
},
{
"name": "prometheus/alertmanager",
"version": "v0.29.0-rc.0",
"date": "2025-10-10T01:13:27Z"
},
{
"name": "gelbphoenix/autocaliweb",
"version": "v0.10.3",
"date": "2025-10-09T21:55:26Z"
},
{
"name": "FlareSolverr/FlareSolverr",
"version": "v3.4.2",
@@ -299,6 +199,21 @@
"version": "v0.13.2",
"date": "2025-10-09T18:33:46Z"
},
{
"name": "esphome/esphome",
"version": "2025.9.3",
"date": "2025-10-01T11:30:07Z"
},
{
"name": "MediaBrowser/Emby.Releases",
"version": "4.9.1.80",
"date": "2025-09-30T20:25:16Z"
},
{
"name": "mattermost/mattermost",
"version": "server/public/v0.1.20",
"date": "2025-10-09T17:22:46Z"
},
{
"name": "ErsatzTV/ErsatzTV",
"version": "v25.7.1",
@@ -334,6 +249,11 @@
"version": "v1.12.10",
"date": "2025-10-09T04:32:35Z"
},
{
"name": "rogerfar/rdt-client",
"version": "v2.0.118",
"date": "2025-10-09T03:33:01Z"
},
{
"name": "rabbitmq/rabbitmq-server",
"version": "v4.1.4",
@@ -394,11 +314,21 @@
"version": "v0.307.0-rc.0",
"date": "2025-10-08T11:25:44Z"
},
{
"name": "authelia/authelia",
"version": "v4.39.12",
"date": "2025-10-08T08:03:01Z"
},
{
"name": "gotson/komga",
"version": "1.23.5",
"date": "2025-10-08T07:31:37Z"
},
{
"name": "booklore-app/booklore",
"version": "v1.5.1",
"date": "2025-10-07T21:57:21Z"
},
{
"name": "open-webui/open-webui",
"version": "v0.6.33",
@@ -464,6 +394,11 @@
"version": "0.10.1.14",
"date": "2025-10-06T23:35:16Z"
},
{
"name": "outline/outline",
"version": "v1.0.0-1",
"date": "2025-10-06T23:16:32Z"
},
{
"name": "Radarr/Radarr",
"version": "v5.28.0.10274",
@@ -504,6 +439,11 @@
"version": "v25.10.1",
"date": "2025-10-06T14:23:20Z"
},
{
"name": "Graylog2/graylog2-server",
"version": "7.0.0-beta.3",
"date": "2025-10-06T11:25:12Z"
},
{
"name": "jordan-dalby/ByteStash",
"version": "v1.5.9",
@@ -519,6 +459,11 @@
"version": "v1.19.16",
"date": "2025-10-05T23:28:59Z"
},
{
"name": "sabnzbd/sabnzbd",
"version": "4.5.3",
"date": "2025-08-25T13:59:56Z"
},
{
"name": "plankanban/planka",
"version": "planka-1.0.5",
@@ -544,6 +489,11 @@
"version": "v0.62.11",
"date": "2025-10-05T07:31:57Z"
},
{
"name": "YunoHost/yunohost",
"version": "debian/12.1.27",
"date": "2025-10-05T02:16:42Z"
},
{
"name": "webmin/webmin",
"version": "2.520",
@@ -554,6 +504,16 @@
"version": "v0.8.8-beta",
"date": "2025-10-04T15:56:29Z"
},
{
"name": "globaleaks/globaleaks-whistleblowing-software",
"version": "v5.0.84",
"date": "2025-10-04T08:06:12Z"
},
{
"name": "Luligu/matterbridge",
"version": "3.3.0",
"date": "2025-10-03T21:22:14Z"
},
{
"name": "immich-app/immich",
"version": "v2.0.1",
@@ -569,6 +529,11 @@
"version": "8.2.2",
"date": "2025-10-03T06:22:38Z"
},
{
"name": "jhuckaby/Cronicle",
"version": "v0.9.95",
"date": "2025-10-02T16:07:18Z"
},
{
"name": "cockpit-project/cockpit",
"version": "348",
@@ -684,6 +649,11 @@
"version": "v1.2.6",
"date": "2025-09-28T18:09:21Z"
},
{
"name": "jellyfin/jellyfin",
"version": "v10.10.7",
"date": "2025-04-05T19:14:59Z"
},
{
"name": "karlomikus/bar-assistant",
"version": "v5.8.1",
@@ -706,8 +676,8 @@
},
{
"name": "javedh-dev/tracktor",
"version": "0.3.17",
"date": "2025-09-27T07:00:36Z"
"version": "0.3.18",
"date": "2025-09-27T10:32:09Z"
},
{
"name": "Dolibarr/dolibarr",
@@ -744,6 +714,11 @@
"version": "v2.13.0",
"date": "2025-09-25T15:19:02Z"
},
{
"name": "bluenviron/mediamtx",
"version": "v1.15.1",
"date": "2025-09-25T13:35:14Z"
},
{
"name": "forgejo/forgejo",
"version": "v14.0.0-dev",
@@ -829,6 +804,11 @@
"version": "v0.17.0",
"date": "2025-09-19T22:23:28Z"
},
{
"name": "hargata/lubelog",
"version": "v1.5.2",
"date": "2025-09-19T14:18:53Z"
},
{
"name": "saltstack/salt",
"version": "v3007.8",
@@ -894,6 +874,11 @@
"version": "3.2.0",
"date": "2025-09-15T18:03:08Z"
},
{
"name": "ellite/Wallos",
"version": "v4.3.0",
"date": "2025-09-15T17:34:48Z"
},
{
"name": "linuxserver/Heimdall",
"version": "v2.7.6",
@@ -969,6 +954,11 @@
"version": "RELEASE.2025-09-07T16-13-09Z",
"date": "2025-09-07T18:53:04Z"
},
{
"name": "Stirling-Tools/Stirling-PDF",
"version": "v1.3.2",
"date": "2025-09-05T18:44:15Z"
},
{
"name": "CrazyWolf13/streamlink-webui",
"version": "0.6",
@@ -1159,11 +1149,21 @@
"version": "v0.4.5",
"date": "2025-07-29T16:39:18Z"
},
{
"name": "node-red/node-red",
"version": "4.1.0",
"date": "2025-07-29T15:15:26Z"
},
{
"name": "navidrome/navidrome",
"version": "v0.58.0",
"date": "2025-07-28T18:59:50Z"
},
{
"name": "PrivateBin/PrivateBin",
"version": "2.0.0",
"date": "2025-07-28T07:48:40Z"
},
{
"name": "umami-software/umami",
"version": "v2.19.0",

View File

@@ -14,14 +14,16 @@ network_check
update_os
msg_info "Installing Dependencies"
$STD apk add --no-cache openssl apache2-utils
$STD apk add --no-cache curl openssl apache2-utils
msg_ok "Installed Dependencies"
msg_info "Installing Tinyauth"
mkdir -p /opt/tinyauth
RELEASE=$(curl -s https://api.github.com/repos/steveiliop56/tinyauth/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
curl -fsSL "https://github.com/steveiliop56/tinyauth/releases/download/v${RELEASE}/tinyauth-amd64" -o /opt/tinyauth/tinyauth
chmod +x /opt/tinyauth/tinyauth
PASS=$(openssl rand -base64 8 | tr -dc 'a-zA-Z0-9' | head -c 8)
USER=$(htpasswd -Bbn "tinyauth" "${PASS}")
@@ -30,18 +32,24 @@ Tinyauth Credentials
Username: tinyauth
Password: ${PASS}
EOF
echo "${RELEASE}" >~/.tinyauth
echo "${RELEASE}" >/opt/tinyauth_version.txt
msg_ok "Installed Tinyauth"
read -r -p "${TAB3}Enter your Tinyauth subdomain (e.g. https://tinyauth.example.com): " app_url
read -p "${TAB3}Enter your Tinyauth subdomain (e.g. https://tinyauth.example.com): " app_url
msg_info "Creating Tinyauth Service"
SECRET=$(openssl rand -base64 32 | tr -dc 'a-zA-Z0-9' | head -c 32)
cat <<EOF >/opt/tinyauth/.env
DATABASE_PATH=/opt/tinyauth/database.db
USERS='${USER}'
SECRET=${SECRET}
USERS=${USER}
APP_URL=${app_url}
EOF
msg_info "Creating Service"
sed -i -e 's/\$/\$\$/g' /opt/tinyauth/.env
cat <<'EOF' >/etc/init.d/tinyauth
#!/sbin/openrc-run
description="Tinyauth Service"
@@ -61,6 +69,7 @@ depend() {
use net
}
EOF
chmod +x /etc/init.d/tinyauth
$STD rc-update add tinyauth default
msg_ok "Enabled Tinyauth Service"

View File

@@ -14,24 +14,26 @@ network_check
update_os
msg_info "Installing Dependencies"
$STD apt install -y git
$STD apt-get install -y \
git
msg_ok "Installed Dependencies"
fetch_and_deploy_gh_release "configarr" "raydak-labs/configarr" "prebuild" "latest" "/opt/configarr" "configarr-linux-x64.tar.xz"
NODE_MODULE="pnpm@latest" setup_nodejs
fetch_and_deploy_gh_release "configarr" "raydak-labs/configarr"
msg_info "Setup Configarr"
msg_info "Setup ${APPLICATION}"
cat <<EOF >/opt/configarr/.env
ROOT_PATH=/opt/configarr
CUSTOM_REPO_ROOT=/opt/configarr/repos
CONFIG_LOCATION=/opt/configarr/config.yml
SECRETS_LOCATION=/opt/configarr/secrets.yml
EOF
mv /opt/configarr/secrets.yml.template /opt/configarr/secrets.yml
sed 's|#localConfigTemplatesPath: /app/templates|#localConfigTemplatesPath: /opt/configarr/templates|' /opt/configarr/config.yml.template >/opt/configarr/config.yml
cd /opt/configarr
curl -fsSLO https://raw.githubusercontent.com/raydak-labs/configarr/refs/heads/main/examples/full/config/config.yml
curl -fsSLO https://raw.githubusercontent.com/raydak-labs/configarr/refs/heads/main/examples/full/config/secrets.yml
sed 's|#localConfigTemplatesPath: /app/templates|#localConfigTemplatesPath: /opt/configarr/templates|' /opt/configarr/config.yml
msg_ok "Setup Configarr"
$STD pnpm install
$STD pnpm run build
msg_ok "Setup ${APPLICATION}"
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/configarr-task.service
@@ -39,9 +41,9 @@ cat <<EOF >/etc/systemd/system/configarr-task.service
Description=Run Configarr Task
[Service]
Type=simple
Type=oneshot
WorkingDirectory=/opt/configarr
ExecStart=/opt/configarr/configarr
ExecStart=/usr/bin/node /opt/configarr/bundle.cjs
EOF
cat <<EOF >/etc/systemd/system/configarr-task.timer
@@ -63,7 +65,6 @@ motd_ssh
customize
msg_info "Cleaning up"
$STD apt -y autoremove
$STD apt -y autoclean
$STD apt -y clean
$STD apt-get -y autoremove
$STD apt-get -y autoclean
msg_ok "Cleaned"

View File

@@ -17,7 +17,7 @@ msg_info "Installing Dependencies"
$STD apt-get install -y \
git \
apache2 \
php8.4-{apcu,cli,common,curl,gd,ldap,mysql,xmlrpc,xml,mbstring,bcmath,intl,zip,redis,bz2,soap} \
php8.2-{apcu,cli,common,curl,gd,imap,ldap,mysql,xmlrpc,xml,mbstring,bcmath,intl,zip,redis,bz2,soap} \
php-cas \
libapache2-mod-php
msg_ok "Installed Dependencies"
@@ -43,11 +43,12 @@ msg_ok "Set up database"
msg_info "Installing GLPi"
cd /opt
RELEASE=$(curl -fsSL https://api.github.com/repos/glpi-project/glpi/releases/latest | grep '"tag_name"' | sed -E 's/.*"tag_name": "([^"]+)".*/\1/')
curl -fsSL "https://github.com/glpi-project/glpi/releases/download/${RELEASE}/glpi-${RELEASE}.tgz" -o $(basename "https://github.com/glpi-project/glpi/releases/download/${RELEASE}/glpi-${RELEASE}.tgz")
$STD tar -xzvf glpi-${RELEASE}.tgz
#RELEASE=$(curl -fsSL https://api.github.com/repos/glpi-project/glpi/releases/latest | grep '"tag_name"' | sed -E 's/.*"tag_name": "([^"]+)".*/\1/')
curl -fsSL "https://github.com/glpi-project/glpi/releases/download/10.0.20/glpi-10.0.20.tgz" -o "glpi-10.0.20.tgz"
$STD tar -xzvf glpi-10.0.20.tgz
cd /opt/glpi
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
$STD php bin/console db:install --db-name=$DB_NAME --db-user=$DB_USER --db-password=$DB_PASS --no-interaction
echo "10.0.20" >/opt/${APPLICATION}_version.txt
msg_ok "Installed GLPi"
msg_info "Setting Downstream file"
@@ -82,18 +83,6 @@ define('GLPI_LOG_DIR', '/var/log/glpi');
EOF
msg_ok "Configured Downstream file"
msg_info "Configuring GLPI Database"
$STD /usr/bin/php /opt/glpi/bin/console db:install \
--db-host=localhost \
--db-name=$DB_NAME \
--db-user=$DB_USER \
--db-password=$DB_PASS \
--default-language=en_US \
--no-interaction \
--allow-superuser \
--force
msg_ok "Configured GLPI Database"
msg_info "Setting Folder and File Permissions"
chown root:root /opt/glpi/ -R
chown www-data:www-data /etc/glpi -R
@@ -155,7 +144,7 @@ customize
msg_info "Cleaning up"
rm -rf /opt/glpi/install
rm -rf /opt/glpi-${RELEASE}.tgz
rm -rf /opt/glpi-10.0.20.tgz
$STD apt-get -y autoremove
$STD apt-get -y autoclean
msg_ok "Cleaned"

View File

@@ -46,6 +46,7 @@ $STD apt-get install --no-install-recommends -y \
libgomp1 \
liblqr-1-0 \
libltdl7 \
libmimalloc3 \
libopenjp2-7 \
meson \
ninja-build \
@@ -108,23 +109,6 @@ if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then
msg_ok "Installed OpenVINO dependencies"
fi
msg_info "Configuring Debian Testing Repo"
sed -i 's/ trixie-updates/ trixie-updates testing/g' /etc/apt/sources.list.d/debian.sources
cat <<EOF >/etc/apt/preferences.d/preferences
Package: *
Pin: release a=unstable
Pin-Priority: 450
Package: *
Pin:release a=testing
Pin-Priority: 450
EOF
$STD apt-get update
msg_ok "Configured Debian Testing repo"
msg_info "Installing libmimalloc3"
$STD apt-get install -t testing --no-install-recommends -yqq libmimalloc3
msg_ok "Installed libmimalloc3"
PNPM_VERSION="$(curl -fsSL "https://raw.githubusercontent.com/immich-app/immich/refs/heads/main/package.json" | jq -r '.packageManager | split("@")[1]')"
NODE_VERSION="22" NODE_MODULE="pnpm@${PNPM_VERSION}" setup_nodejs
PG_VERSION="16" PG_MODULES="pgvector" setup_postgresql

View File

@@ -14,7 +14,7 @@ network_check
update_os
msg_info "Installing SearXNG dependencies"
echo "deb http://deb.debian.org/debian bookworm-backports main" >/etc/apt/sources.list.d/backports.list
echo "deb http://deb.debian.org/debian bookworm-backports main" > /etc/apt/sources.list.d/backports.list
$STD apt-get update
$STD apt-get install -y \
python3-dev python3-babel python3-venv python-is-python3 \
@@ -36,7 +36,7 @@ msg_info "Creating Python virtual environment"
sudo -H -u searxng bash -c '
python3 -m venv /usr/local/searxng/searx-pyenv &&
. /usr/local/searxng/searx-pyenv/bin/activate &&
pip install -U pip setuptools wheel pyyaml lxml msgspec &&
pip install -U pip setuptools wheel pyyaml lxml &&
pip install --use-pep517 --no-build-isolation -e /usr/local/searxng/searxng-src
'
msg_ok "Python environment ready"

View File

@@ -42,7 +42,7 @@ curl -fsSL "https://github.com/wger-project/wger/archive/refs/tags/$RELEASE.tar.
tar xzf "$RELEASE".tar.gz
mv wger-"$RELEASE" /home/wger/src
cd /home/wger/src || exit
$STD pip install -r requirements_prod.txt --ignore-installed
$STD pip install -r requirements_prod.txt
$STD pip install -e .
$STD wger create-settings --database-path /home/wger/db/database.sqlite
sed -i "s#home/wger/src/media#home/wger/media#g" /home/wger/src/settings.py