mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Bug 8208 - bare metal provisioning
Better the prepare_linmin.sh
This commit is contained in:
parent
cdaa1edfa5
commit
a7ea3ecae3
@ -8,7 +8,7 @@ err_exit() {
|
||||
|
||||
[ ! -f $DHCP_CONF ] && err_exit "Cannot find $DHCP_CONF"
|
||||
|
||||
cat $DHCP_CONF | tr '\n' '~' > /tmp/dhcpd.tmp && sed -i 's/\(subnet.*netmask.*{\).*\(~}\)/\1\2/g' /tmp/dhcpd.tmp && cat /tmp/dhcpd.tmp | tr '~' '\n' > $DHCP_CONF && rm /tmp/dhcpd.tmp -f
|
||||
cat $DHCP_CONF | tr '\n' '~' > /tmp/dhcpd.tmp && sed -i 's/}/}\n/g' /tmp/dhcpd.tmp && sed -i 's/\(subnet.*netmask.*{\).*\(}\)/\1\2/g' /tmp/dhcpd.tmp && cat /tmp/dhcpd.tmp | tr '~' '\n' > $DHCP_CONF && rm /tmp/dhcpd.tmp -f
|
||||
[ $? -ne 0 ] && err_exit "Configure dhcpd.conf failed"
|
||||
service dhcpd restart
|
||||
[ $? -ne 0 ] && err_exit "restart dhcpd failed"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user