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