Kizureina 2 năm trước cách đây
mục cha
commit
9ad6869582
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      init.d/Tomcat-init

+ 2 - 2
init.d/Tomcat-init

@@ -87,8 +87,8 @@ stop() {
 
 user_exists() {
   if id -u $1 >/dev/null 2>&1; then
-	temp=`cat /etc/passwd | grep ^www: | grep nologin$`
-	if [ "${temp: -7}" = "nologin" ]; then
+	islogin=`cat /etc/passwd | grep ^www: | grep nologin$`
+	if [ "${islogin: -7}" = "nologin" ]; then
       echo "0"
     else
       echo "1"