]> git.ipfire.org Git - thirdparty/snapper.git/commit
Implement generic plugin script support 727/head
authorLudwig Nussel <ludwig.nussel@suse.de>
Wed, 1 Jun 2022 11:14:15 +0000 (13:14 +0200)
committerLudwig Nussel <ludwig.nussel@suse.de>
Wed, 1 Jun 2022 14:20:52 +0000 (16:20 +0200)
commitd90d76ff5e5a969f04ced0794753b5bfd59b1a4b
tree72b717aef81da7fd4cfe6c45b2baa664de1271a2
parent6a2562c7538307a31d1a14641dbfe48f328387b2
Implement generic plugin script support

Instead of hardcoding calls to specific scripts, just read the
content of /usr/lib/snapper/plugins and execute all scripts that
start with a digit.
Implemented for create_snapshot, modify_snapshot, delete_snapshot,
and set_default_snapshot for a start.
doc/snapper.xml.in
snapper/Btrfs.cc
snapper/Hooks.cc
snapper/Hooks.h
snapper/Snapshot.cc