Fix "unary operator expected" error
Change-Id: I1763bbac6e24ea396c049c08807ea14f23e3c39b
This commit is contained in:
parent
9bf9db7e52
commit
43a07cef1c
|
@ -110,9 +110,9 @@ function init_nova-lxd() {
|
||||||
function configure_lxd_block() {
|
function configure_lxd_block() {
|
||||||
echo_summary "Configure LXD storage backend"
|
echo_summary "Configure LXD storage backend"
|
||||||
if is_ubuntu; then
|
if is_ubuntu; then
|
||||||
if [ $LXD_BACKEND_DRIVER == "default" ]; then
|
if [ "$LXD_BACKEND_DRIVER" == "default" ]; then
|
||||||
echo "Nothing to be done"
|
echo "Nothing to be done"
|
||||||
elif [ $LXD_BACKEND_DRIVER == "zfs" ]; then
|
elif [ "$LXD_BACKEND_DRIVER" == "zfs" ]; then
|
||||||
echo "Configuring ZFS backend"
|
echo "Configuring ZFS backend"
|
||||||
truncate -s $LXD_LOOPBACK_DISK_SIZE $LXD_DISK_IMAGE
|
truncate -s $LXD_LOOPBACK_DISK_SIZE $LXD_DISK_IMAGE
|
||||||
sudo apt-get install -y zfs
|
sudo apt-get install -y zfs
|
||||||
|
@ -130,7 +130,7 @@ function shutdown_nova-lxd() {
|
||||||
|
|
||||||
function cleanup_nova-lxd() {
|
function cleanup_nova-lxd() {
|
||||||
# Cleanup the service.
|
# Cleanup the service.
|
||||||
if [ $LXD_BACKEND_DRIVER == "zfs" ]; then
|
if [ "$LXD_BACKEND_DRIVER" == "zfs" ]; then
|
||||||
sudo zpool destroy ${LXD_ZFS_ZPOOL}
|
sudo zpool destroy ${LXD_ZFS_ZPOOL}
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue