diff options
Diffstat (limited to 'deploy/adapters/ansible/roles/storage/files')
3 files changed, 3 insertions, 3 deletions
diff --git a/deploy/adapters/ansible/roles/storage/files/create_img.sh b/deploy/adapters/ansible/roles/storage/files/create_img.sh index 4b9ac534..13565bdc 100755 --- a/deploy/adapters/ansible/roles/storage/files/create_img.sh +++ b/deploy/adapters/ansible/roles/storage/files/create_img.sh @@ -1,4 +1,4 @@ seek_num=`echo $1 | sed -e 's/.* //g'` -if [[ ! -f /var/storage.img ]]; then +if [ ! -f /var/storage.img ]; then dd if=/dev/zero of=/var/storage.img bs=1 count=0 seek=$seek_num fi diff --git a/deploy/adapters/ansible/roles/storage/files/get_var_size.sh b/deploy/adapters/ansible/roles/storage/files/get_var_size.sh index 55041c6e..6f690375 100755 --- a/deploy/adapters/ansible/roles/storage/files/get_var_size.sh +++ b/deploy/adapters/ansible/roles/storage/files/get_var_size.sh @@ -1,5 +1,5 @@ size=`df /var | awk '$3 ~ /[0-9]+/ { print $4 }'`; -if [[ $size -gt 2000000000 ]]; then +if [ $size -gt 2000000000 ]; then echo -n 2000000000000; else echo -n $((size * 1000 / 512 * 512)); diff --git a/deploy/adapters/ansible/roles/storage/files/losetup.sh b/deploy/adapters/ansible/roles/storage/files/losetup.sh index 8cb9bd7d..3e95069f 100755 --- a/deploy/adapters/ansible/roles/storage/files/losetup.sh +++ b/deploy/adapters/ansible/roles/storage/files/losetup.sh @@ -1,5 +1,5 @@ loop_dev=`losetup -a |grep "/var/storage.img"|awk -F':' '{print $1}'` -if [[ -z $loop_dev ]]; then +if [ -z $loop_dev ]; then losetup -f --show /var/storage.img else echo $loop_dev |