-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug: fix path to sanoid in systemctl (#33)
systemctl were pointing to /usr/local/sbin/sanoid, when the package is installed at /usr/sbin/sanoid.
- Loading branch information
1 parent
fd3ced6
commit b141b5a
Showing
1 changed file
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|