mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-10-20 07:05:33 -04:00
Compare commits
5 Commits
fix/zitade
...
fix/silo-v
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d0fad99f8c | ||
|
|
e556084107 | ||
|
|
c16806d87e | ||
|
|
c7d8c440ce | ||
|
|
9cdce51d43 |
@@ -565,6 +565,15 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
||||
|
||||
</details>
|
||||
|
||||
## 2026-10-20
|
||||
|
||||
### 🚀 Updated Scripts
|
||||
|
||||
- #### 🐞 Bug Fixes
|
||||
|
||||
- InvenTree: move to go.packager.io [@MickLesk](https://github.com/MickLesk) ([#18015](https://github.com/community-scripts/ProxmoxVE/pull/18015))
|
||||
- Zitadel: run init and setup in the foreground [@MickLesk](https://github.com/MickLesk) ([#18016](https://github.com/community-scripts/ProxmoxVE/pull/18016))
|
||||
|
||||
## 2026-10-19
|
||||
|
||||
### 🆕 New Scripts
|
||||
|
||||
@@ -31,11 +31,31 @@ function update_script() {
|
||||
exit
|
||||
fi
|
||||
|
||||
if ! grep -qE "^ID=(ubuntu)$" /etc/os-release; then
|
||||
msg_error "Unsupported OS. InvenTree requires Ubuntu (20.04/22.04/24.04)."
|
||||
if ! grep -qE "^ID=(ubuntu|debian)$" /etc/os-release; then
|
||||
msg_error "Unsupported OS. InvenTree requires Ubuntu or Debian."
|
||||
exit
|
||||
fi
|
||||
|
||||
# dl.packager.io is frozen at 1.5.1 and its SHA1-bound key fails on Debian 13;
|
||||
# go.packager.io only carries current builds for these releases
|
||||
if grep -qs "dl.packager.io" /etc/apt/sources.list.d/inventree*; then
|
||||
case "$(get_os_info id)/$(get_os_info version)" in
|
||||
ubuntu/24.04 | ubuntu/26.04 | debian/13)
|
||||
msg_info "Migrating InvenTree Repository"
|
||||
setup_deb822_repo \
|
||||
"inventree" \
|
||||
"https://go.packager.io/srv/deb/inventree/InvenTree/gpg-key.asc" \
|
||||
"https://go.packager.io/srv/deb/inventree/InvenTree/stable/$(get_os_info id)" \
|
||||
"$(get_os_info version)" \
|
||||
"main"
|
||||
msg_ok "Migrated InvenTree Repository"
|
||||
;;
|
||||
*)
|
||||
msg_warn "InvenTree only publishes updates for Ubuntu 24.04/26.04 and Debian 13; staying on the frozen repository"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
msg_info "Updating InvenTree"
|
||||
apt_update_safe
|
||||
$STD apt install --only-upgrade inventree -y
|
||||
|
||||
@@ -31,12 +31,13 @@ function update_script() {
|
||||
exit
|
||||
fi
|
||||
|
||||
if check_for_gh_release "silo" "pgsty/silo"; then
|
||||
[[ -f ~/.silo ]] && mv ~/.silo ~/.silo_s3
|
||||
if check_for_gh_release "silo_s3" "pgsty/silo"; then
|
||||
msg_info "Stopping Silo"
|
||||
systemctl stop silo
|
||||
msg_ok "Stopped Silo"
|
||||
|
||||
DPKG_FORCE_CONFOLD=1 fetch_and_deploy_gh_release "silo" "pgsty/silo" "binary"
|
||||
DPKG_FORCE_CONFOLD=1 fetch_and_deploy_gh_release "silo_s3" "pgsty/silo" "binary"
|
||||
|
||||
msg_info "Starting Silo"
|
||||
systemctl start silo
|
||||
|
||||
@@ -16,8 +16,8 @@ update_os
|
||||
msg_info "Setting up InvenTree Repository"
|
||||
setup_deb822_repo \
|
||||
"inventree" \
|
||||
"https://dl.packager.io/srv/inventree/InvenTree/key" \
|
||||
"https://dl.packager.io/srv/deb/inventree/InvenTree/stable/$(get_os_info id)" \
|
||||
"https://go.packager.io/srv/deb/inventree/InvenTree/gpg-key.asc" \
|
||||
"https://go.packager.io/srv/deb/inventree/InvenTree/stable/$(get_os_info id)" \
|
||||
"$(get_os_info version)" \
|
||||
"main"
|
||||
msg_ok "Set up InvenTree Repository"
|
||||
|
||||
@@ -13,7 +13,7 @@ setting_up_container
|
||||
network_check
|
||||
update_os
|
||||
|
||||
fetch_and_deploy_gh_release "silo" "pgsty/silo" "binary"
|
||||
fetch_and_deploy_gh_release "silo_s3" "pgsty/silo" "binary"
|
||||
|
||||
msg_info "Configuring Silo"
|
||||
mkdir -p /opt/silo_data
|
||||
|
||||
@@ -14,7 +14,7 @@ network_check
|
||||
update_os
|
||||
|
||||
msg_info "Installing Dependencies (Patience)"
|
||||
$STD apt install -y ca-certificates lsof
|
||||
$STD apt install -y ca-certificates
|
||||
msg_ok "Installed Dependecies"
|
||||
|
||||
PG_VERSION="17" setup_postgresql
|
||||
@@ -114,13 +114,12 @@ NoNewPrivileges=true
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
systemctl enable -q --now zitadel
|
||||
systemctl enable -q zitadel
|
||||
msg_ok "Created Services"
|
||||
|
||||
msg_info "Zitadel initial setup"
|
||||
zitadel start-from-init --masterkeyFile /opt/zitadel/.masterkey --config /opt/zitadel/config.yaml &>/dev/null &
|
||||
sleep 60
|
||||
kill $(lsof -i | awk '/zitadel/ {print $2}' | head -n1)
|
||||
$STD zitadel init --config /opt/zitadel/config.yaml
|
||||
$STD zitadel setup --masterkeyFile /opt/zitadel/.masterkey --config /opt/zitadel/config.yaml
|
||||
useradd zitadel
|
||||
msg_ok "Zitadel initialized"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user