Skip to content

Commit 0c37759

Browse files
authored
Update linux_userData.sh
remove vol_size
1 parent 0205d4d commit 0c37759

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Management-Utilities/ec2-user-data-iscsi-create-and-mount/linux_userData.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ LUN_NAME=${VOLUME_NAME}_$(($RANDOM%($max-$min+1)+$min))
2424
# The script will create a log file in the ec2-user home directory
2525
LOG_FILE=/home/ec2-user/install.log
2626

27-
VOL_SIZE=$(echo $VOLUME_SIZE | sed 's/.$//')
28-
LUN_SIZE=$(bc -l <<< "0.90*$VOL_SIZE" )
27+
LUN_SIZE=$(bc -l <<< "0.90*$VOLUME_SIZE" )
2928

3029
echo "# Uninstall file" >> uninstall.sh
3130
chmod u+x uninstall.sh

0 commit comments

Comments
 (0)