core-admin/dom0/aux-tools/convert-dirtemplate2vm.sh
2013-03-15 23:03:28 +01:00

12 lines
126 B
Bash
Executable File

#!/bin/sh
SRC=$1
DST=$2
VMNAME=$3
VMDIR=$4
sed -e "s/%VMNAME%/$VMNAME/" \
-e "s %VMDIR% $VMDIR " \
<$SRC >$DST