Skip to content

Commit

Permalink
Trigger on /etc/os-release changes to preserve customization (#8)
Browse files Browse the repository at this point in the history
* add trigger on /etc/os-release

* 1.7.1-1

* fix typo

* 1.7.2-1
  • Loading branch information
jxmx authored Jun 29, 2024
1 parent 348df2e commit 5bcf5f1
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
SRCNAME = asl3-pi-appliance
PKGNAME = $(SRCNAME)
RELVER = 1.7
RELVER = 1.7.2
DEBVER = 1
RELPLAT ?= deb$(shell lsb_release -rs 2> /dev/null)

Expand Down
12 changes: 12 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
asl3-pi-appliance (1.7.2-1) stable; urgency=medium

* Fix typo in /etc/motd

-- Jason McCormick <[email protected]> Sat, 29 Jun 2024 19:40:14 -0400

asl3-pi-appliance (1.7.1-1) stable; urgency=medium

* Trigger on changes to /etc/os-release to reapply customizations

-- Jason McCormick <[email protected]> Sat, 29 Jun 2024 19:30:23 -0400

asl3-pi-appliance (1.7-1) stable; urgency=medium

* Add "sa818-menu", a [whiptail] menu that wraps the "sa818" command
Expand Down
10 changes: 6 additions & 4 deletions debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ do_configure() {
# Rewrite the motd
cat - > /etc/motd <<EOF
Welcome to AlLStarLink v3
Welcome to AllStarLink v3
* A CLI menu is accessible by typing 'sudo asl-menu'
* The Asterisk CLI is accessible by typing 'sudo asterisk -rv'
Expand Down Expand Up @@ -93,10 +93,12 @@ EOF

case "$1" in
configure)
do_configure
do_configure
;;

abort-upgrade|abort-remove|abort-deconfigure)
triggered)
/usr/share/cockpit/branding/debian-AllStarLink/fix-os-release
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;

*)
Expand Down
1 change: 1 addition & 0 deletions debian/triggers
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
interest /etc/os-release

0 comments on commit 5bcf5f1

Please sign in to comment.