Skip to content

Commit

Permalink
spec file - update post setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
bkelly16 committed Jan 15, 2025
1 parent 05bd59e commit 1b7f471
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packaging/el8/main.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1b7f471

Please sign in to comment.