From 1b7f471bdb5693f26d8c7068438693d6cd32434f Mon Sep 17 00:00:00 2001 From: Brett Kelly Date: Wed, 15 Jan 2025 16:41:26 -0400 Subject: [PATCH] spec file - update post setup script --- packaging/el8/main.spec | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packaging/el8/main.spec b/packaging/el8/main.spec index f661f88..0196a49 100644 --- a/packaging/el8/main.spec +++ b/packaging/el8/main.spec @@ -30,11 +30,10 @@ Conflicts: %{name}-1.7 make DESTDIR=%{buildroot} TOOLS_VERSION="%{version}-::package_build_version::" install %post -if [ $1 == 0 ];then - systemctl daemon-reload - systemctl enable zfs-scrub.timer - systemctl start zfs-scrub.timer -fi +systemctl daemon-reload +systemctl enable zfs-scrub.timer +systemctl start zfs-scrub.timer + %preun if [ $1 == 0 ];then @@ -62,8 +61,9 @@ if [ $1 == 0 ];then if [ -d "$OLD_TOOLS_DIR" ]; then rm -rf "$OLD_TOOLS_DIR" fi + systemctl daemon-reload fi -systemctl daemon-reload + %files %dir /opt/45drives/tools