90-boot-environments.conf.in
1 // be-btrfs — APT hook template 2 // Creates a snapshot before every apt install/upgrade operation. 3 // @bindir@ is replaced at install time (default: /usr/local/sbin). 4 // 5 // Install: 6 // sed 's|@bindir@|/usr/local/sbin|g' 90-boot-environments.conf.in \ 7 // > /etc/apt/apt.conf.d/90-boot-environments.conf 8 // Or use: be-btrfs apt-hook-install 9 10 binary::apt::AptCli::Hooks::Install { 11 "[ ! -f @bindir@/beadm ] || @bindir@/beadm apt-hook || true"; 12 }; 13 14 binary::apt::AptCli::Hooks::Upgrade { 15 "[ ! -f @bindir@/beadm ] || @bindir@/beadm apt-hook || true"; 16 };