mirror of
https://github.com/kneutron/ansitest.git
synced 2025-01-16 04:42:55 +08:00
add nuke arg
This commit is contained in:
parent
94b1e66516
commit
339b72fcb6
@ -36,6 +36,9 @@ df -hT |grep zfs
|
|||||||
|
|
||||||
echo "$(date) - Removing existing ZFS packages"
|
echo "$(date) - Removing existing ZFS packages"
|
||||||
time apt-get remove --purge -y libzfs2linux zfs-dkms zfsutils-linux spl spl-dkms libnvpair* libuutil* libzpool*
|
time apt-get remove --purge -y libzfs2linux zfs-dkms zfsutils-linux spl spl-dkms libnvpair* libuutil* libzpool*
|
||||||
|
|
||||||
|
[ "$1" = "nuke" ] && apt-get remove $(dpkg -l |grep zfs |awk '{printf $2" "}')
|
||||||
|
|
||||||
[ $(dpkg -l |egrep -c 'libzfs2linux|zfs-dkms|zfsutils-linux|spl-dkms|libnvpair|libuutil|libzpool') -gt 0 ] && failexit 199 "! ZFS packages are still installed!"
|
[ $(dpkg -l |egrep -c 'libzfs2linux|zfs-dkms|zfsutils-linux|spl-dkms|libnvpair|libuutil|libzpool') -gt 0 ] && failexit 199 "! ZFS packages are still installed!"
|
||||||
|
|
||||||
# call downloaded script, should be in /root/bin or /usr/local/bin // accessible by PATH
|
# call downloaded script, should be in /root/bin or /usr/local/bin // accessible by PATH
|
||||||
|
Loading…
x
Reference in New Issue
Block a user