Compare commits

..

4 Commits

Author SHA1 Message Date
MickLesk 0dcf4cff08 tools.func: never delete ubuntu.sources (or other distro base sources) as orphaned 2026-08-04 11:35:17 +02:00
community-scripts-pr-app[bot] cf942fb445 Update CHANGELOG.md (#16245)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-08-03 21:24:22 +00:00
jsspen 0c24310e90 Correction to link displayed when old data structure is detected during an attempted update (#16241) 2026-08-03 23:23:59 +02:00
CanbiZ (MickLesk) 336cdda47d termix: add env backup 2026-08-03 22:56:27 +02:00
6 changed files with 9 additions and 9 deletions
+1
View File
@@ -524,6 +524,7 @@ Exercise vigilance regarding copycat or coat-tailing sites that seek to exploit
- #### 🐞 Bug Fixes
- Correction to link in Paperless-NGX update script [@jsspen](https://github.com/jsspen) ([#16241](https://github.com/community-scripts/ProxmoxVE/pull/16241))
- fix restore env in split pro [@johanngrobe](https://github.com/johanngrobe) ([#16228](https://github.com/community-scripts/ProxmoxVE/pull/16228))
### 💾 Core
+1 -1
View File
@@ -42,7 +42,7 @@ function update_script() {
echo -e ""
msg_custom "🔄" "Migration required to new data structure (/opt/paperless_data/)"
msg_custom "📖" "Please follow the migration guide:"
echo -e "${GATEWAY}${BGN}https://github.com/community-scripts/ProxmoxVE/discussions/9223${CL}"
echo -e "${GATEWAY}${BGN}https://github.com/community-scripts/ProxmoxVE/pull/9223${CL}"
echo -e ""
msg_custom "⚠️" "Update aborted. Please migrate your data first."
exit 253
-1
View File
@@ -38,7 +38,6 @@ function update_script() {
create_backup /opt/passwordpusher/storage /opt/passwordpusher/.env.production
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "passwordpusher" "pglombardo/PasswordPusher" "tarball"
RUBY_VERSION="$(cat /opt/passwordpusher/.ruby-version)" RUBY_INSTALL_RAILS="false" setup_ruby
msg_info "Installing Gem Dependencies"
cd /opt/passwordpusher
+1 -1
View File
@@ -143,7 +143,7 @@ EOF
fi
msg_ok "Migrated Configuration"
create_backup /opt/termix/data /opt/termix/uploads
create_backup /opt/termix/data /opt/termix/uploads /opt/termix/.env
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "termix" "Termix-SSH/Termix" "tarball"
+2 -3
View File
@@ -22,13 +22,12 @@ $STD apt install -y \
pkg-config
msg_ok "Installed Dependencies"
RUBY_VERSION="4.0.5" RUBY_INSTALL_RAILS="false" setup_ruby
NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs
export PATH="$HOME/.rbenv/shims:$HOME/.rbenv/bin:$PATH"
fetch_and_deploy_gh_release "passwordpusher" "pglombardo/PasswordPusher" "tarball"
RUBY_VERSION="$(cat /opt/passwordpusher/.ruby-version)" RUBY_INSTALL_RAILS="false" setup_ruby
export PATH="$HOME/.rbenv/shims:$HOME/.rbenv/bin:$PATH"
msg_info "Installing Gem Dependencies"
cd /opt/passwordpusher
$STD bundle config set --local without 'development test'
+4 -3
View File
@@ -2040,8 +2040,9 @@ cleanup_orphaned_sources() {
local basename_file
basename_file=$(basename "$sources_file")
# NEVER remove debian.sources - this is the standard Debian repository
if [[ "$basename_file" == "debian.sources" ]]; then
# NEVER remove the distro's own base sources file (debian.sources,
# ubuntu.sources, ...)
if [[ "$basename_file" == "$(get_os_info id).sources" ]]; then
continue
fi
@@ -2113,7 +2114,7 @@ ensure_apt_working() {
# Step 4: More aggressive - remove all third-party sources
msg_warn "APT update still failing, removing third-party sources"
find /etc/apt/sources.list.d/ -type f \( -name "*.sources" -o -name "*.list" \) \
! -name "debian.sources" -delete 2>/dev/null || true
! -name "$(get_os_info id).sources" -delete 2>/dev/null || true
# Final attempt
if ! $STD apt update; then