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 <mail@gmelikov.ru> Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: loli10K <ezomori.nozomu@gmail.com> Closes #6108
This commit is contained in:
parent
3e2ecae01c
commit
4e3de24b61
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user