Scripts: apt instead of apt-get, cleanup_lxc, nginx_enable_site, drop needless daemon-reloads (#17624)

This commit is contained in:
CanbiZ (MickLesk)
2026-10-01 08:14:33 +02:00
committed by GitHub
parent e773412791
commit 2497c18bee
59 changed files with 60 additions and 79 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ function update_script() {
fi
msg_info "Updating Apache CouchDB"
apt_update_safe
$STD apt-get install -y --only-upgrade couchdb
$STD apt install -y --only-upgrade couchdb
msg_ok "Updated Apache CouchDB"
msg_ok "Updated successfully!"
exit
+1 -1
View File
@@ -31,7 +31,7 @@ function update_script() {
fi
msg_info "Updating ${APP} LXC"
apt_update_safe
$STD apt-get -y upgrade
$STD apt -y upgrade
msg_ok "Updated ${APP} LXC"
msg_ok "Updated successfully!"
exit
+1 -1
View File
@@ -31,7 +31,7 @@ function update_script() {
fi
msg_info "Updating ${APP} LXC"
apt_update_safe
$STD apt-get -y upgrade
$STD apt -y upgrade
msg_ok "Updated successfully!"
exit
}
+1 -1
View File
@@ -47,7 +47,7 @@ function update_script() {
msg_ok "Backup created"
msg_info "Installing Dependencies"
$STD apt-get install -y pkg-config
$STD apt install -y pkg-config
$STD sudo -u frappe bash -c 'export PATH="$HOME/.local/bin:/usr/local/bin:$PATH"; cd /opt/frappe-bench && uv python install 3.14'
msg_ok "Installed Dependencies"
+1 -1
View File
@@ -62,7 +62,7 @@ function update_script() {
GRAMPS_VERSION=$(/opt/gramps-web/venv/bin/python3 -c "import gramps.version; print('%s%s' % (gramps.version.VERSION_TUPLE[0], gramps.version.VERSION_TUPLE[1]))" 2>/dev/null || echo "60")
GRAMPS_PLUGINS_DIR="/opt/gramps-web/data/gramps/gramps${GRAMPS_VERSION}/plugins"
mkdir -p "$GRAMPS_PLUGINS_DIR"
$STD wget -q https://github.com/gramps-project/addons/archive/refs/heads/master.zip -O /tmp/gramps-addons.zip
curl -fsSL -o /tmp/gramps-addons.zip https://github.com/gramps-project/addons/archive/refs/heads/master.zip
for addon in FilterRules JSON; do
unzip -p /tmp/gramps-addons.zip "addons-master/gramps${GRAMPS_VERSION}/download/${addon}.addon.tgz" |
tar -xz -C "$GRAMPS_PLUGINS_DIR"
+1 -1
View File
@@ -44,7 +44,7 @@ function update_script() {
msg_info "Updating packages"
apt_update_safe
$STD apt-get -y upgrade
$STD apt -y upgrade
msg_ok "Updated packages"
msg_info "Backup old Keycloak"
+1 -1
View File
@@ -39,7 +39,7 @@ function update_script() {
msg_info "Updating packages"
apt_update_safe
$STD apt-get dist-upgrade -y
$STD apt dist-upgrade -y
ensure_dependencies "inotify-tools"
msg_ok "Updated packages"
+2 -2
View File
@@ -44,8 +44,8 @@ function update_script() {
msg_info "Migrating to v4: Removing RabbitMQ"
systemctl stop rabbitmq-server
systemctl disable rabbitmq-server
$STD apt-get purge -y rabbitmq-server erlang-base
$STD apt-get autoremove -y
$STD apt purge -y rabbitmq-server erlang-base
$STD apt autoremove -y
msg_ok "Removed RabbitMQ"
fi
+1 -1
View File
@@ -109,7 +109,7 @@ function update_script() {
if [[ -f /etc/angie/http.d/romm.conf ]]; then
if ! grep -q "js_content decode.decodeBase64" /etc/angie/http.d/romm.conf; then
msg_info "Adding missing /decode and /cache locations to Angie config"
dpkg -l angie-module-njs &>/dev/null || $STD apt-get install -y angie-module-njs
dpkg -l angie-module-njs &>/dev/null || $STD apt install -y angie-module-njs
grep -q "ngx_http_js_module.so" /etc/angie/angie.conf || sed -i '1i load_module modules/ngx_http_js_module.so;' /etc/angie/angie.conf
mkdir -p /etc/angie/js "${ROMM_BASE}/cache"
cat <<'JSEOF' >/etc/angie/js/decode.js
+1 -1
View File
@@ -31,7 +31,7 @@ function update_script() {
fi
msg_info "Updating ${APP} LXC"
apt_update_safe
$STD apt-get -y upgrade
$STD apt -y upgrade
msg_ok "Updated ${APP} LXC"
msg_ok "Updated successfully!"
exit
+1 -1
View File
@@ -42,7 +42,7 @@ function update_script() {
msg_info "Updating UHF Server"
if dpkg -l ffmpeg 2>&1 | grep -q "ii"; then
apt remove ffmpeg -y && apt autoremove -y
$STD apt remove -y ffmpeg && $STD apt autoremove -y
fi
setup_ffmpeg
fetch_and_deploy_gh_release "comskip" "swapplications/comskip" "prebuild" "latest" "/opt/comskip" "comskip-$(arch_resolve "x64" "arm64")-*.zip"
+1 -1
View File
@@ -31,7 +31,7 @@ function update_script() {
fi
msg_info "Updating OS"
apt_update_safe
$STD apt-get -y upgrade
$STD apt -y upgrade
msg_ok "Updated OS"
msg_info "Updating $APP LXC"