mirror of
https://github.com/TheGrandWazoo/freenas-proxmox.git
synced 2026-10-22 06:28:20 +02:00
Introduces truenas-proxmox as the real package and freenas-proxmox as a transitional meta-package that Depends on truenas-proxmox. Existing users running apt upgrade automatically pull in the new package; the migration one-liner (apt install truenas-proxmox && apt purge freenas-proxmox) completes the transition. The freenas-proxmox package name will not exist in v4.0. Changes: - packaging/DEBIAN/: Package renamed to truenas-proxmox, INSTALL_DIR and LOG_FILE updated to /usr/share/truenas-proxmox and /var/log/truenas-proxmox-install.log; Replaces/Breaks fields added - packaging/DEBIAN-transitional/: new empty meta-package that pulls in truenas-proxmox and prints a deprecation notice on configure - build.yml: PACKAGE_NAME=truenas-proxmox; both debs built and published to Cloudsmith; transitional postinst added to shellcheck - All GitHub repo URLs updated to TheGrandWazoo/truenas-proxmox - apt install/remove/purge commands in docs updated to truenas-proxmox - GitHub repo rename to truenas-proxmox pending (gh repo rename step) Closes #262 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
28 lines
724 B
Bash
28 lines
724 B
Bash
#!/bin/bash
|
|
# postinst: freenas-proxmox transitional package
|
|
# This package is empty — the real plugin is in truenas-proxmox.
|
|
set -e
|
|
|
|
LOG_FILE="/var/log/truenas-proxmox-install.log"
|
|
|
|
log() {
|
|
echo "[freenas-proxmox] $*" | tee -a "$LOG_FILE"
|
|
}
|
|
|
|
case "$1" in
|
|
configure)
|
|
log "freenas-proxmox is now a transitional package."
|
|
log "The plugin has moved to: truenas-proxmox"
|
|
log "To complete migration: apt install truenas-proxmox && apt purge freenas-proxmox"
|
|
log "Note: freenas-proxmox will not exist in v4.0."
|
|
;;
|
|
abort-upgrade|abort-remove|abort-deconfigure)
|
|
;;
|
|
*)
|
|
echo "$0: called with unknown argument '$1'" >&2
|
|
exit 0
|
|
;;
|
|
esac
|
|
|
|
exit 0
|