mirror of
https://github.com/farcasclaudiu/terraform-course.git
synced 2026-06-29 07:01:53 +03:00
volume script updates
This commit is contained in:
@@ -10,8 +10,8 @@ if [ "`echo -n $DEVICE_FS`" == "" ] ; then
|
|||||||
DEVICEEXISTS=''
|
DEVICEEXISTS=''
|
||||||
while [[ -z $DEVICEEXISTS ]]; do
|
while [[ -z $DEVICEEXISTS ]]; do
|
||||||
echo "checking $DEVICENAME"
|
echo "checking $DEVICENAME"
|
||||||
DEVICEEXISTS=`ls -asl /dev/disk/by-uuid/ | grep "$DEVICENAME"`
|
DEVICEEXISTS=`lsblk |grep "$DEVICENAME" |wc -l`
|
||||||
if [[ -z $DEVICEEXISTS ]]; then
|
if [[ $DEVICEEXISTS != "1" ]]; then
|
||||||
sleep 15
|
sleep 15
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user