diff options
author | LOLi <[email protected]> | 2017-05-09 20:51:40 +0200 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2017-05-09 11:51:40 -0700 |
commit | 4e3de24b61b9116f0138d22ec687d0a759b29967 (patch) | |
tree | 5e49bb1fb52a5c9ba64f537cda4cb8d17d4abbd1 /rpm | |
parent | 3e2ecae01c6de6f885eca2ea78f00db2d21065ef (diff) |
Fix zfs .deb package warning in prerm script
Debian zfs package generated by alien doesn't call the prerm script
(rpm's %preun) with an integer as first parameter, which results in
the following warning:
"zfs.prerm: line 2: [: remove: integer expression expected"
Modify the if-condition to avoid the warning.
Reviewed-by: George Melikov <[email protected]>
Reviewed-by: Giuseppe Di Natale <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: loli10K <[email protected]>
Closes #6108
Diffstat (limited to 'rpm')
-rw-r--r-- | rpm/generic/zfs.spec.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpm/generic/zfs.spec.in b/rpm/generic/zfs.spec.in index bab7c5c61..2ad4b693c 100644 --- a/rpm/generic/zfs.spec.in +++ b/rpm/generic/zfs.spec.in @@ -257,7 +257,7 @@ exit 0 %if 0%{?_systemd} %systemd_preun %{systemd_svcs} %else -if [ $1 -eq 0 ] && [ -x /sbin/chkconfig ]; then +if [ "$1" = "0" ] && [ -x /sbin/chkconfig ]; then /sbin/chkconfig --del zfs-import /sbin/chkconfig --del zfs-mount /sbin/chkconfig --del zfs-share |