mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-11-20 18:13:47 +01:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b81b4d29a0 |
No files matched your search
@@ -588,19 +588,10 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
|
||||
|
||||
### 🚀 Updated Scripts
|
||||
|
||||
- #### 🐞 Bug Fixes
|
||||
|
||||
- deCONZ: fetch libssl1.1 over HTTPS on arm64 [@MickLesk](https://github.com/MickLesk) ([#18798](https://github.com/community-scripts/ProxmoxVE/pull/18798))
|
||||
|
||||
- #### ✨ New Features
|
||||
|
||||
- Stalwart: migrate to v1 with stalwart-migrate [@MickLesk](https://github.com/MickLesk) ([#18794](https://github.com/community-scripts/ProxmoxVE/pull/18794))
|
||||
|
||||
### 💾 Core
|
||||
|
||||
- core: Keep the root filesystem lookup a soft failure [@MickLesk](https://github.com/MickLesk) ([core#280](https://github.com/community-scripts/core/pull/280))
|
||||
- fix: vm - name why an image step failed and open one message for the disk import [@MickLesk](https://github.com/MickLesk) ([core#279](https://github.com/community-scripts/core/pull/279))
|
||||
|
||||
## 2026-11-19
|
||||
|
||||
### 🆕 New Scripts
|
||||
|
||||
@@ -32,8 +32,6 @@ function update_script() {
|
||||
msg_info "Updating deCONZ"
|
||||
apt_update_safe
|
||||
$STD apt upgrade -y
|
||||
setcap -r /usr/bin/deCONZ 2>/dev/null || true
|
||||
systemctl restart deconz
|
||||
msg_ok "Updated deCONZ"
|
||||
msg_ok "Updated successfully!"
|
||||
exit
|
||||
|
||||
@@ -22,13 +22,11 @@ setup_deb822_repo \
|
||||
msg_ok "Setup Phoscon Repository"
|
||||
|
||||
msg_info "Installing deConz"
|
||||
pool="$(arch_resolve "https://security.ubuntu.com/ubuntu/pool/main/o/openssl/" "https://ports.ubuntu.com/ubuntu-ports/pool/main/o/openssl/")"
|
||||
libssl=$(curl -fsSL --proto '=https' "$pool" | grep -o "libssl1\.1_1\.1\.1f-1ubuntu2\.2[^\"]*$(arch_resolve)\.deb" | head -n1)
|
||||
curl -fsSL --proto '=https' "$pool$libssl" -o "$libssl"
|
||||
pool="$(arch_resolve "https://security.ubuntu.com/ubuntu/pool/main/o/openssl/" "http://ports.ubuntu.com/ubuntu-ports/pool/main/o/openssl/")"
|
||||
libssl=$(curl -fsSL --proto '=http,https' "$pool" | grep -o "libssl1\.1_1\.1\.1f-1ubuntu2\.2[^\"]*$(arch_resolve)\.deb" | head -n1)
|
||||
curl -fsSL --proto '=http,https' "$pool$libssl" -o "$libssl"
|
||||
$STD dpkg -i "$libssl"
|
||||
$STD apt install -y deconz
|
||||
# The service runs as root; the postinst file caps break exec in privileged Incus containers
|
||||
setcap -r /usr/bin/deCONZ 2>/dev/null || true
|
||||
rm -rf "$libssl"
|
||||
msg_ok "Installed deConz"
|
||||
|
||||
|
||||
+14
-9
@@ -51,18 +51,20 @@ header_info
|
||||
echo "One moment please...\n"
|
||||
|
||||
function execute_in() {
|
||||
container=$1
|
||||
name=$(pct exec "$container" hostname)
|
||||
echo -e "${BL}[Info]${GN} Execute inside${BL} ${name}${GN} with output: ${CL}"
|
||||
if ! pct exec "$container" -- bash -c "command ${custom_command} >/dev/null 2>&1"; then
|
||||
echo -e "${BL}[Info]${GN} Skipping ${name} ${RD}$container has no command: ${custom_command}"
|
||||
else
|
||||
pct exec "$container" -- bash -c "${custom_command}" | tee
|
||||
local container=$1 name rc=0
|
||||
name=$(pct config "$container" | awk '/^hostname:/ {print $2}')
|
||||
echo -e "${BL}[Info]${GN} Execute inside${BL} ${container} (${name})${GN} with output: ${CL}"
|
||||
# Run once; a failure in one container must not end the run for the others.
|
||||
pct exec "$container" -- bash -c "${custom_command}" | tee || rc=$?
|
||||
if [ "$rc" -eq 127 ]; then
|
||||
echo -e "${BL}[Info]${RD} ${container} (${name}) has no command: ${custom_command}${CL}"
|
||||
elif [ "$rc" -ne 0 ]; then
|
||||
echo -e "${BL}[Info]${RD} Command exited with code ${rc} in ${container} (${name})${CL}"
|
||||
fi
|
||||
}
|
||||
|
||||
for container in $(pct list | awk '{if(NR>1) print $1}'); do
|
||||
if [[ " ${excluded_containers[@]} " =~ " $container " ]]; then
|
||||
if [[ " ${excluded_containers} " == *" ${container} "* ]]; then
|
||||
echo -e "${BL}[Info]${GN} Skipping ${BL}$container${CL}"
|
||||
else
|
||||
os=$(pct config "$container" | awk '/^ostype/ {print $2}')
|
||||
@@ -75,7 +77,10 @@ for container in $(pct list | awk '{if(NR>1) print $1}'); do
|
||||
template=$(pct config "$container" | grep -q "template:" && echo "true" || echo "false")
|
||||
if [ "$template" == "false" ] && [ "$status" == "status: stopped" ]; then
|
||||
echo -e "${BL}[Info]${GN} Starting${BL} $container ${CL}"
|
||||
pct start "$container"
|
||||
if ! pct start "$container"; then
|
||||
echo -e "${BL}[Info]${RD} Skipping ${container}, it did not start${CL}"
|
||||
continue
|
||||
fi
|
||||
echo -e "${BL}[Info]${GN} Waiting For${BL} $container${CL}${GN} To Start ${CL}"
|
||||
sleep 5
|
||||
execute_in "$container"
|
||||
|
||||
Reference in new issue
Block a user