Skip to content

Commit 05830f8

Browse files
committed
Set ReadOnly access to new templates
1 parent a1a1ae1 commit 05830f8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

create-vm-template.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,8 @@ BASEDIR=$(dirname $0)
2020
$BASEDIR/delete-esxi-vm.sh "$VM_NAME" "$DATASTORE"
2121

2222
echo "Creating VM"
23-
$BASEDIR/create-esxi-vm.sh $DATASTORE $GUEST_OS $VM_NAME $POOL_NAME $RAM 2 2 $VMDK_SIZE - $ISO_PATH $VMWARE_TOOLS_ISO $FLOPPY_PATH true "$VM_NETWORK"
23+
$BASEDIR/create-esxi-vm.sh $DATASTORE $GUEST_OS "$VM_NAME" $POOL_NAME $RAM 2 2 $VMDK_SIZE - $ISO_PATH $VMWARE_TOOLS_ISO $FLOPPY_PATH true "$VM_NETWORK"
24+
25+
# Set permission to ReadOnly for everybody except the current user
26+
$BASEDIR/set-esxi-vm-permission-all-users.sh "$VM_NAME" ReadOnly "$USER"
2427

0 commit comments

Comments
 (0)