mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-08-31 12:35:54 +00:00
Compare commits
11 Commits
fix-nodejs
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
12c6e86cf2 | ||
|
|
d9eb574517 | ||
|
|
4971b7682f | ||
|
|
82ee37f846 | ||
|
|
3f7da3aa03 | ||
|
|
639bbd2703 | ||
|
|
5729364f34 | ||
|
|
eb56b6bdc1 | ||
|
|
6cae1ed744 | ||
|
|
cecd3222fc | ||
|
|
b1edc2722d |
18
CHANGELOG.md
18
CHANGELOG.md
@@ -532,10 +532,16 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
|||||||
|
|
||||||
## 2026-08-31
|
## 2026-08-31
|
||||||
|
|
||||||
|
### 🆕 New Scripts
|
||||||
|
|
||||||
|
- Aurral ([#16908](https://github.com/community-scripts/ProxmoxVE/pull/16908))
|
||||||
|
|
||||||
### 🚀 Updated Scripts
|
### 🚀 Updated Scripts
|
||||||
|
|
||||||
- #### 🐞 Bug Fixes
|
- #### 🐞 Bug Fixes
|
||||||
|
|
||||||
|
- bambuddy: force asyncio loop, uvloop breaks camera proxy handlers [@MickLesk](https://github.com/MickLesk) ([#16904](https://github.com/community-scripts/ProxmoxVE/pull/16904))
|
||||||
|
- bookorbit: raise service start timeout, migration can exceed systemd default [@MickLesk](https://github.com/MickLesk) ([#16860](https://github.com/community-scripts/ProxmoxVE/pull/16860))
|
||||||
- node-red: remove --unsafe-perm flag [@MickLesk](https://github.com/MickLesk) ([#16859](https://github.com/community-scripts/ProxmoxVE/pull/16859))
|
- node-red: remove --unsafe-perm flag [@MickLesk](https://github.com/MickLesk) ([#16859](https://github.com/community-scripts/ProxmoxVE/pull/16859))
|
||||||
- directus: add build-essential dependency [@MickLesk](https://github.com/MickLesk) ([#16858](https://github.com/community-scripts/ProxmoxVE/pull/16858))
|
- directus: add build-essential dependency [@MickLesk](https://github.com/MickLesk) ([#16858](https://github.com/community-scripts/ProxmoxVE/pull/16858))
|
||||||
|
|
||||||
@@ -545,6 +551,8 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
|||||||
|
|
||||||
- #### 🔧 Refactor
|
- #### 🔧 Refactor
|
||||||
|
|
||||||
|
- kima-hub/maintainerr/planka/spliit: bump NODE_VERSION [@MickLesk](https://github.com/MickLesk) ([#16905](https://github.com/community-scripts/ProxmoxVE/pull/16905))
|
||||||
|
- gatus: pin Go toolchain to gatus's own go.mod version [@MickLesk](https://github.com/MickLesk) ([#16893](https://github.com/community-scripts/ProxmoxVE/pull/16893))
|
||||||
- immich: tolerate enable-maintenance-mode crash, same as disable-maintenance-mode [@MickLesk](https://github.com/MickLesk) ([#16866](https://github.com/community-scripts/ProxmoxVE/pull/16866))
|
- immich: tolerate enable-maintenance-mode crash, same as disable-maintenance-mode [@MickLesk](https://github.com/MickLesk) ([#16866](https://github.com/community-scripts/ProxmoxVE/pull/16866))
|
||||||
- move the hardware-accelerated scripts onto new core [@MickLesk](https://github.com/MickLesk) ([#16864](https://github.com/community-scripts/ProxmoxVE/pull/16864))
|
- move the hardware-accelerated scripts onto new core [@MickLesk](https://github.com/MickLesk) ([#16864](https://github.com/community-scripts/ProxmoxVE/pull/16864))
|
||||||
- ntopng: use ntop.org's documented apt repo per Debian codename, not always apt-stable [@MickLesk](https://github.com/MickLesk) ([#16862](https://github.com/community-scripts/ProxmoxVE/pull/16862))
|
- ntopng: use ntop.org's documented apt repo per Debian codename, not always apt-stable [@MickLesk](https://github.com/MickLesk) ([#16862](https://github.com/community-scripts/ProxmoxVE/pull/16862))
|
||||||
@@ -552,7 +560,15 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
|||||||
|
|
||||||
### 💾 Core
|
### 💾 Core
|
||||||
|
|
||||||
- Lift the settings summary and the mode fork into vm-core [@MickLesk](https://github.com/MickLesk) ([core#12](https://github.com/community-scripts/core/pull/12))
|
- Refactor VM script settings and fix load_functions errors [@MickLesk](https://github.com/MickLesk) ([core#13](https://github.com/community-scripts/core/pull/13))
|
||||||
|
- Ask ProxmoxVE to refresh its changelog on merge [@MickLesk](https://github.com/MickLesk) ([core#11](https://github.com/community-scripts/core/pull/11))
|
||||||
|
- Lift the settings summary and the mode fork into vm-core [@MickLesk](https://github.com/MickLesk) ([core#12](https://github.com/community-scripts/core/pull/12))
|
||||||
|
|
||||||
|
### 🧰 Tools
|
||||||
|
|
||||||
|
- #### 🐞 Bug Fixes
|
||||||
|
|
||||||
|
- filebrowser-quantum: strip removed disableIndexing key on update, restart service [@MickLesk](https://github.com/MickLesk) ([#16892](https://github.com/community-scripts/ProxmoxVE/pull/16892))
|
||||||
|
|
||||||
### 📚 Documentation
|
### 📚 Documentation
|
||||||
|
|
||||||
|
|||||||
74
ct/aurral.sh
Normal file
74
ct/aurral.sh
Normal file
@@ -0,0 +1,74 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main"
|
||||||
|
_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/lklynet/aurral
|
||||||
|
|
||||||
|
APP="Aurral"
|
||||||
|
var_tags="${var_tags:-music;lidarr;discovery}"
|
||||||
|
var_cpu="${var_cpu:-2}"
|
||||||
|
var_ram="${var_ram:-4096}"
|
||||||
|
var_disk="${var_disk:-10}"
|
||||||
|
var_os="${var_os:-debian}"
|
||||||
|
var_version="${var_version:-13}"
|
||||||
|
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
|
||||||
|
|
||||||
|
if [[ ! -d /opt/aurral ]]; then
|
||||||
|
msg_error "No ${APP} Installation Found!"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
if check_for_gh_release "aurral" "lklynet/aurral"; then
|
||||||
|
msg_info "Stopping Service"
|
||||||
|
systemctl stop aurral
|
||||||
|
msg_ok "Stopped Service"
|
||||||
|
|
||||||
|
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "aurral" "lklynet/aurral" "tarball"
|
||||||
|
|
||||||
|
msg_info "Updating Aurral"
|
||||||
|
cd /opt/aurral
|
||||||
|
export VITE_APP_VERSION="$(cat ~/.aurral)"
|
||||||
|
export VITE_GITHUB_REPO="lklynet/aurral"
|
||||||
|
export VITE_RELEASE_CHANNEL="stable"
|
||||||
|
$STD npm ci --workspace frontend --include-workspace-root=false
|
||||||
|
$STD npm run build --workspace frontend
|
||||||
|
$STD npm ci --workspace backend --omit=dev --include=optional --include-workspace-root=false
|
||||||
|
mkdir -p /opt/aurral_data
|
||||||
|
cat <<EOF >/opt/aurral/aurral.env
|
||||||
|
NODE_ENV=production
|
||||||
|
PORT=3001
|
||||||
|
AURRAL_DATA_DIR=/opt/aurral_data
|
||||||
|
APP_VERSION=$(cat ~/.aurral)
|
||||||
|
EOF
|
||||||
|
msg_ok "Updated Aurral"
|
||||||
|
|
||||||
|
msg_info "Starting Service"
|
||||||
|
systemctl start aurral
|
||||||
|
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}:3001${CL}"
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
|
_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main"
|
||||||
|
_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
|
# Copyright (c) 2021-2026 community-scripts ORG
|
||||||
# Author: Adrian-RDA
|
# Author: Adrian-RDA
|
||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
@@ -62,6 +64,11 @@ function update_script() {
|
|||||||
|
|
||||||
restore_backup
|
restore_backup
|
||||||
|
|
||||||
|
if ! grep -q -- '--loop asyncio' /etc/systemd/system/bambuddy.service; then
|
||||||
|
sed -i 's|^ExecStart=.*|ExecStart=/opt/bambuddy/.venv/bin/uvicorn backend.app.main:app --host 0.0.0.0 --port 8000 --loop asyncio|' /etc/systemd/system/bambuddy.service
|
||||||
|
systemctl daemon-reload
|
||||||
|
fi
|
||||||
|
|
||||||
msg_info "Starting Service"
|
msg_info "Starting Service"
|
||||||
systemctl start bambuddy
|
systemctl start bambuddy
|
||||||
msg_ok "Started Service"
|
msg_ok "Started Service"
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
|
_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main"
|
||||||
|
_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
|
# Copyright (c) 2021-2026 community-scripts ORG
|
||||||
# Author: MickLesk (CanbiZ)
|
# Author: MickLesk (CanbiZ)
|
||||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||||
@@ -56,6 +58,10 @@ function update_script() {
|
|||||||
restore_backup
|
restore_backup
|
||||||
APP_VER=$(cat ~/.bookorbit)
|
APP_VER=$(cat ~/.bookorbit)
|
||||||
sed -i "s/^APP_VERSION=.*/APP_VERSION=v$APP_VER/" /opt/bookorbit/.env
|
sed -i "s/^APP_VERSION=.*/APP_VERSION=v$APP_VER/" /opt/bookorbit/.env
|
||||||
|
if ! grep -q '^TimeoutStartSec=' /etc/systemd/system/bookorbit.service; then
|
||||||
|
sed -i '/^\[Service\]/a TimeoutStartSec=infinity' /etc/systemd/system/bookorbit.service
|
||||||
|
systemctl daemon-reload
|
||||||
|
fi
|
||||||
msg_ok "Rebuilt Application"
|
msg_ok "Rebuilt Application"
|
||||||
|
|
||||||
msg_info "Updating Kobo Python Runtime"
|
msg_info "Updating Kobo Python Runtime"
|
||||||
|
|||||||
16
ct/gatus.sh
16
ct/gatus.sh
@@ -45,6 +45,7 @@ update_deb_based() {
|
|||||||
|
|
||||||
mv /opt/gatus/config/config.yaml /opt
|
mv /opt/gatus/config/config.yaml /opt
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "gatus" "TwiN/gatus" "tarball"
|
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "gatus" "TwiN/gatus" "tarball"
|
||||||
|
GO_VERSION="$(grep -m1 '^go ' /opt/gatus/go.mod | awk '{print $2}')" setup_go
|
||||||
|
|
||||||
msg_info "Updating Gatus"
|
msg_info "Updating Gatus"
|
||||||
cd /opt/gatus
|
cd /opt/gatus
|
||||||
@@ -66,27 +67,20 @@ update_alpine() {
|
|||||||
msg_error "No ${APP} Installation Found!"
|
msg_error "No ${APP} Installation Found!"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
RELEASE=$(curl -s https://api.github.com/repos/TwiN/gatus/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
if check_for_gh_release "gatus" "TwiN/gatus"; then
|
||||||
if [ "${RELEASE}" != "$(cat /opt/gatus_version.txt)" ] || [ ! -f /opt/gatus_version.txt ]; then
|
msg_info "Updating ${APP}"
|
||||||
msg_info "Updating ${APP} LXC"
|
|
||||||
$STD apk -U upgrade
|
$STD apk -U upgrade
|
||||||
$STD service gatus stop
|
$STD service gatus stop
|
||||||
mv /opt/gatus/config/config.yaml /opt
|
mv /opt/gatus/config/config.yaml /opt
|
||||||
rm -rf /opt/gatus/*
|
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "gatus" "TwiN/gatus" "tarball"
|
||||||
temp_file=$(mktemp)
|
|
||||||
curl -fsSL "https://github.com/TwiN/gatus/archive/refs/tags/v${RELEASE}.tar.gz" -o "$temp_file"
|
|
||||||
tar zxf "$temp_file" --strip-components=1 -C /opt/gatus
|
|
||||||
cd /opt/gatus
|
cd /opt/gatus
|
||||||
|
$STD go get golang.org/x/net@v0.55.0
|
||||||
$STD go mod tidy
|
$STD go mod tidy
|
||||||
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o gatus .
|
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o gatus .
|
||||||
setcap CAP_NET_RAW+ep gatus
|
setcap CAP_NET_RAW+ep gatus
|
||||||
mv /opt/config.yaml config
|
mv /opt/config.yaml config
|
||||||
rm -f "$temp_file"
|
|
||||||
echo "${RELEASE}" >/opt/gatus_version.txt
|
|
||||||
$STD service gatus start
|
$STD service gatus start
|
||||||
msg_ok "Updated successfully!"
|
msg_ok "Updated successfully!"
|
||||||
else
|
|
||||||
msg_ok "No update required. ${APP} is already at ${RELEASE}"
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
6
ct/headers/aurral
Normal file
6
ct/headers/aurral
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
___ __
|
||||||
|
/ | __ ________________ _/ /
|
||||||
|
/ /| |/ / / / ___/ ___/ __ `/ /
|
||||||
|
/ ___ / /_/ / / / / / /_/ / /
|
||||||
|
/_/ |_\__,_/_/ /_/ \__,_/_/
|
||||||
|
|
||||||
70
install/aurral-install.sh
Normal file
70
install/aurral-install.sh
Normal file
@@ -0,0 +1,70 @@
|
|||||||
|
#!/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/lklynet/aurral
|
||||||
|
|
||||||
|
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
||||||
|
color
|
||||||
|
verb_ip6
|
||||||
|
catch_errors
|
||||||
|
setting_up_container
|
||||||
|
network_check
|
||||||
|
update_os
|
||||||
|
|
||||||
|
msg_info "Installing Dependencies"
|
||||||
|
$STD apt install -y \
|
||||||
|
build-essential \
|
||||||
|
python3 \
|
||||||
|
ffmpeg \
|
||||||
|
fontconfig \
|
||||||
|
fonts-dejavu-core
|
||||||
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
|
NODE_VERSION="22" setup_nodejs
|
||||||
|
|
||||||
|
fetch_and_deploy_gh_release "yt-dlp" "yt-dlp/yt-dlp" "singlefile" "latest" "/usr/local/bin" "yt-dlp"
|
||||||
|
fetch_and_deploy_gh_release "aurral" "lklynet/aurral" "tarball"
|
||||||
|
|
||||||
|
msg_info "Building Aurral"
|
||||||
|
cd /opt/aurral
|
||||||
|
export VITE_APP_VERSION="$(cat ~/.aurral)"
|
||||||
|
export VITE_GITHUB_REPO="lklynet/aurral"
|
||||||
|
export VITE_RELEASE_CHANNEL="stable"
|
||||||
|
$STD npm ci --workspace frontend --include-workspace-root=false
|
||||||
|
$STD npm run build --workspace frontend
|
||||||
|
$STD npm ci --workspace backend --omit=dev --include=optional --include-workspace-root=false
|
||||||
|
msg_ok "Built Aurral"
|
||||||
|
|
||||||
|
msg_info "Creating Service"
|
||||||
|
mkdir -p /opt/aurral_data
|
||||||
|
cat <<EOF >/opt/aurral/aurral.env
|
||||||
|
NODE_ENV=production
|
||||||
|
PORT=3001
|
||||||
|
AURRAL_DATA_DIR=/opt/aurral_data
|
||||||
|
APP_VERSION=$(cat ~/.aurral)
|
||||||
|
EOF
|
||||||
|
cat <<EOF >/etc/systemd/system/aurral.service
|
||||||
|
[Unit]
|
||||||
|
Description=Aurral Service
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=root
|
||||||
|
WorkingDirectory=/opt/aurral
|
||||||
|
EnvironmentFile=/opt/aurral/aurral.env
|
||||||
|
ExecStart=/usr/bin/node backend/server.js
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=5
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
EOF
|
||||||
|
systemctl enable -q --now aurral
|
||||||
|
msg_ok "Created Service"
|
||||||
|
|
||||||
|
motd_ssh
|
||||||
|
customize
|
||||||
|
cleanup_lxc
|
||||||
@@ -52,7 +52,7 @@ After=network.target
|
|||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
WorkingDirectory=/opt/bambuddy
|
WorkingDirectory=/opt/bambuddy
|
||||||
ExecStart=/opt/bambuddy/.venv/bin/uvicorn backend.app.main:app --host 0.0.0.0 --port 8000
|
ExecStart=/opt/bambuddy/.venv/bin/uvicorn backend.app.main:app --host 0.0.0.0 --port 8000 --loop asyncio
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=5
|
RestartSec=5
|
||||||
|
|
||||||
|
|||||||
@@ -81,6 +81,7 @@ Requires=postgresql.service
|
|||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
User=root
|
User=root
|
||||||
|
TimeoutStartSec=infinity
|
||||||
WorkingDirectory=/opt/bookorbit/server
|
WorkingDirectory=/opt/bookorbit/server
|
||||||
EnvironmentFile=/opt/bookorbit/.env
|
EnvironmentFile=/opt/bookorbit/.env
|
||||||
ExecStartPre=/usr/bin/node /opt/bookorbit/server/dist/scripts/migrate.js
|
ExecStartPre=/usr/bin/node /opt/bookorbit/server/dist/scripts/migrate.js
|
||||||
|
|||||||
@@ -20,8 +20,8 @@ setup_deb_based() {
|
|||||||
libcap2-bin
|
libcap2-bin
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
setup_go
|
|
||||||
fetch_and_deploy_gh_release "gatus" "TwiN/gatus" "tarball"
|
fetch_and_deploy_gh_release "gatus" "TwiN/gatus" "tarball"
|
||||||
|
GO_VERSION="$(grep -m1 '^go ' /opt/gatus/go.mod | awk '{print $2}')" setup_go
|
||||||
|
|
||||||
msg_info "Configuring gatus"
|
msg_info "Configuring gatus"
|
||||||
cd /opt/gatus
|
cd /opt/gatus
|
||||||
@@ -59,19 +59,16 @@ setup_alpine() {
|
|||||||
$STD apk add --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community go
|
$STD apk add --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community go
|
||||||
msg_ok "Installed dependencies"
|
msg_ok "Installed dependencies"
|
||||||
|
|
||||||
RELEASE=$(curl -s https://api.github.com/repos/TwiN/gatus/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
fetch_and_deploy_gh_release "gatus" "TwiN/gatus" "tarball"
|
||||||
msg_info "Installing gatus v${RELEASE}"
|
|
||||||
temp_file=$(mktemp)
|
msg_info "Configuring gatus"
|
||||||
mkdir -p /opt/gatus
|
|
||||||
curl -fsSL "https://github.com/TwiN/gatus/archive/refs/tags/v${RELEASE}.tar.gz" -o "$temp_file"
|
|
||||||
tar zxf "$temp_file" --strip-components=1 -C /opt/gatus
|
|
||||||
cd /opt/gatus
|
cd /opt/gatus
|
||||||
|
$STD go get golang.org/x/net@v0.55.0
|
||||||
$STD go mod tidy
|
$STD go mod tidy
|
||||||
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o gatus .
|
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o gatus .
|
||||||
setcap CAP_NET_RAW+ep gatus
|
setcap CAP_NET_RAW+ep gatus
|
||||||
mv config.yaml config
|
mv config.yaml config
|
||||||
echo "${RELEASE}" >/opt/gatus_version.txt
|
msg_ok "Configured gatus"
|
||||||
msg_ok "Installed gatus v${RELEASE}"
|
|
||||||
|
|
||||||
msg_info "Enabling gatus Service"
|
msg_info "Enabling gatus Service"
|
||||||
cat <<EOF >/etc/init.d/gatus
|
cat <<EOF >/etc/init.d/gatus
|
||||||
@@ -99,8 +96,6 @@ EOF
|
|||||||
msg_info "Starting gatus"
|
msg_info "Starting gatus"
|
||||||
$STD service gatus start
|
$STD service gatus start
|
||||||
msg_ok "Started gatus"
|
msg_ok "Started gatus"
|
||||||
|
|
||||||
rm -f "$temp_file"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
run_os_setup
|
run_os_setup
|
||||||
|
|||||||
@@ -124,6 +124,14 @@ if [[ -f "$INSTALL_PATH" ]]; then
|
|||||||
if ! command -v curl &>/dev/null; then $STD $PKG_MANAGER curl; fi
|
if ! command -v curl &>/dev/null; then $STD $PKG_MANAGER curl; fi
|
||||||
fetch_and_deploy_gh_release "filebrowser-quantum" "gtsteffaniak/filebrowser" "singlefile" "latest" "/usr/local/bin" "linux-$(arch_resolve)-filebrowser"
|
fetch_and_deploy_gh_release "filebrowser-quantum" "gtsteffaniak/filebrowser" "singlefile" "latest" "/usr/local/bin" "linux-$(arch_resolve)-filebrowser"
|
||||||
mv -f /usr/local/bin/filebrowser-quantum "$INSTALL_PATH"
|
mv -f /usr/local/bin/filebrowser-quantum "$INSTALL_PATH"
|
||||||
|
if [[ -f "$CONFIG_PATH" ]]; then
|
||||||
|
sed -i '/^\s*disableIndexing:/d' "$CONFIG_PATH"
|
||||||
|
fi
|
||||||
|
if [[ "$OS" == "Debian" ]]; then
|
||||||
|
systemctl restart filebrowser.service
|
||||||
|
else
|
||||||
|
rc-service filebrowser restart
|
||||||
|
fi
|
||||||
msg_ok "Updated ${APP}"
|
msg_ok "Updated ${APP}"
|
||||||
fi
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user