Skip to content

Commit

Permalink
fix debian packaging with debian 12 and ubuntu 24.04 (see PR jimsalte…
Browse files Browse the repository at this point in the history
…rjrs#926 from phreaker0:fix-debian-package commit 4d39e39)
  • Loading branch information
msmdev committed Aug 29, 2024
1 parent 91a960f commit e131cd0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions packages/debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@

# remove old cache file
[ -f /var/cache/sanoidsnapshots.txt ] && rm /var/cache/sanoidsnapshots.txt || true
[ -f /var/cache/sanoid/snapshots.txt ] && rm /var/cache/sanoid/snapshots.txt || true
[ -f /var/cache/sanoid/datasets.txt ] && rm /var/cache/sanoid/datasets.txt || true
6 changes: 2 additions & 4 deletions packages/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ override_dh_auto_install:
install -d $(DESTDIR)/etc/sanoid
install -m 664 sanoid.defaults.conf $(DESTDIR)/etc/sanoid

install -d $(DESTDIR)/lib/systemd/system
install -m 664 debian/sanoid-prune.service debian/sanoid.timer \
$(DESTDIR)/lib/systemd/system

install -d $(DESTDIR)/usr/sbin
install -m 775 \
findoid sanoid sleepymutex syncoid \
Expand All @@ -25,6 +21,8 @@ override_dh_auto_install:
install -m 664 sanoid.conf \
$(DESTDIR)/usr/share/doc/sanoid/sanoid.conf.example

dh_installsystemd --name sanoid-prune

override_dh_installinit:
dh_installinit --noscripts

Expand Down
File renamed without changes.

0 comments on commit e131cd0

Please sign in to comment.