diff --git a/simpleInstall/common.sh b/simpleInstall/common.sh index 71c7dea..b859eb4 100644 --- a/simpleInstall/common.sh +++ b/simpleInstall/common.sh @@ -35,11 +35,4 @@ function fn_selinux() return 0 } -function fn_swapoff() -{ - # 关闭交换内存 - swapoff -a - return 0 -} - -COMMON_SH="common.sh" \ No newline at end of file +COMMON_SH="common.sh" diff --git a/simpleInstall/install.sh b/simpleInstall/install.sh index 941e597..b2e27af 100644 --- a/simpleInstall/install.sh +++ b/simpleInstall/install.sh @@ -188,14 +188,6 @@ function fn_post_check() else echo "Set selinux success." fi - fn_swapoff - if [ $? -ne 0 ] - then - echo "Swapoff failed." - return 1 - else - echo "Swapoff success." - fi return 0 } diff --git a/simpleInstall/template.xml b/simpleInstall/template.xml index e7c2d81..9a154ca 100644 --- a/simpleInstall/template.xml +++ b/simpleInstall/template.xml @@ -9,7 +9,6 @@ -