Skip to content

Commit

Permalink
bug: fix path to sanoid in systemctl (#33)
Browse files Browse the repository at this point in the history
systemctl were pointing to /usr/local/sbin/sanoid, when the package is installed at /usr/sbin/sanoid.
  • Loading branch information
johnmmcgee authored Oct 10, 2024
1 parent fd3ced6 commit b141b5a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ucore/sanoid.spec
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

Name: sanoid
Version: %{version}
Release: 1%{?dist}.ucore
Release: 1%{?dist}.ucore1
BuildArch: noarch
Summary: A policy-driven snapshot management tool for ZFS file systems
Group: Applications/System
Expand Down Expand Up @@ -63,7 +63,7 @@ ConditionFileNotEmpty=/etc/sanoid/sanoid.conf
[Service]
Environment=TZ=UTC
Type=oneshot
ExecStart=/usr/local/sbin/sanoid --take-snapshots --verbose
ExecStart=/usr/sbin/sanoid --take-snapshots --verbose
EOF

cat > %{buildroot}%{_unitdir}/%{name}-prune.service <<EOF
Expand All @@ -76,7 +76,7 @@ ConditionFileNotEmpty=/etc/sanoid/sanoid.conf
[Service]
Environment=TZ=UTC
Type=oneshot
ExecStart=/usr/local/sbin/sanoid --prune-snapshots --verbose
ExecStart=/usr/sbin/sanoid --prune-snapshots --verbose

[Install]
WantedBy=sanoid.service
Expand Down Expand Up @@ -131,6 +131,8 @@ echo "* * * * * root %{_sbindir}/sanoid --cron" > %{buildroot}%{_docdir}/%{name}
%endif

%changelog
* Wed Oct 09 2024 John McGee <[email protected]> - 2.2.0.ucore1
- Correct systemctl scripts Exec path
* Tue Mar 19 2024 John McGee <[email protected]> - 2.2.0.ucore
- Remove perl requirement to remove build tools
- Add perl-interpreter and perl-Sys-Hostname requirements
Expand Down

0 comments on commit b141b5a

Please sign in to comment.