mirror of
https://github.com/JRGTH/xigmanas-bastille-extension.git
synced 2025-12-11 17:31:09 +01:00
Make sure bastille-prefix ends with bastille
This commit is contained in:
@@ -1346,7 +1346,10 @@ rc_params()
|
||||
fi
|
||||
|
||||
# Check and make sure bastille_zfs_prefix end with "bastille".
|
||||
if ! echo "${bastille_zfs_prefix}" | grep -qw "${DAFAULT_BASTILLE_PREFIX}"; then
|
||||
if echo "${DAFAULT_BASTILLE_PREFIX}" | ! grep -iq "${APPNAME}"; then
|
||||
zfs_support_error
|
||||
exit 1
|
||||
elif ! echo "${bastille_zfs_prefix}" | grep -qw "${DAFAULT_BASTILLE_PREFIX}"; then
|
||||
zfs_support_error
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user