2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-12 06:20:14 +00:00

Remove trailing spaces in file xCAT-OpenStack/postscripts/configgw

This commit is contained in:
GONG Jie
2017-12-31 23:59:59 +00:00
parent b923cd2057
commit 49c627affc

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash
str_dir_name=`dirname $0`
. $str_dir_name/xcatlib.sh
@@ -47,7 +47,7 @@ if [ -f "/etc/debian_version" ];then
debianpreconf
#delete the gateway from all configuration files
sed -i "s/.*gateway.*//" /etc/network/interfaces.d/*
str_conf_file="/etc/network/interfaces.d/$str_nic_name"
echo " gateway $str_gateway --" >> $str_conf_file
elif [ -f "/etc/SuSE-release" ];then