浏览代码

remove umask, just chmod for the "$LE_WORKING_DIR"

neil 9 年之前
父节点
当前提交
762978f8d8
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      acme.sh

+ 2 - 2
acme.sh

@@ -1,7 +1,5 @@
 #!/usr/bin/env sh
 
-umask 077
-
 VER=2.2.2
 
 PROJECT_NAME="acme.sh"
@@ -1891,6 +1889,8 @@ install() {
     return 1
   fi
   
+  chmod 700 "$LE_WORKING_DIR"
+
   cp $PROJECT_ENTRY "$LE_WORKING_DIR/" && chmod +x "$LE_WORKING_DIR/$PROJECT_ENTRY"
 
   if [ "$?" != "0" ] ; then