fix bug
This commit is contained in:
@@ -7,7 +7,7 @@ if [ -n "`grep 'Aliyun Linux release' /etc/issue`" -o -e /etc/redhat-release ];t
|
||||
[ -n "`grep ' 7\.' /etc/redhat-release`" ] && CentOS_RHEL_version=7
|
||||
fi
|
||||
|
||||
if [ "$OS" != 'CentOS' ] || [ "$CentOS_RHEL_version" != '7' ];then
|
||||
if [ $OS != 'CentOS' ] || [ $CentOS_RHEL_version != '7' ];then
|
||||
echo "${CFAILURE}Error: This script only support CentOS 7${CEND}";
|
||||
kill -9 $$
|
||||
fi
|
||||
@@ -71,4 +71,4 @@ sudo /sbin/iptables -I INPUT -p tcp --dport 22 -j ACCEPT
|
||||
sudo /sbin/service iptables save
|
||||
|
||||
sudo systemctl restart iptables
|
||||
sudo systemctl enable iptables.service
|
||||
sudo systemctl enable iptables.service
|
||||
Reference in New Issue
Block a user