浏览代码

Update addons.sh

lj2007331 9 年之前
父节点
当前提交
edd419dc04
共有 3 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      addons.sh
  2. 1 1
      options.conf
  3. 1 1
      vhost.sh

+ 1 - 1
addons.sh

@@ -121,7 +121,7 @@ cd $oneinstack_dir/src
 src_url=https://dl.eff.org/certbot-auto && Download_src
 src_url=https://dl.eff.org/certbot-auto && Download_src
 /bin/mv certbot-auto /usr/local/bin/
 /bin/mv certbot-auto /usr/local/bin/
 chmod +x /usr/local/bin/certbot-auto
 chmod +x /usr/local/bin/certbot-auto
-certbot-auto -n --help all
+certbot-auto -n
 certbot-auto -h | grep '\-\-standalone' > /dev/null && echo; echo "${CSUCCESS}Let's Encrypt client installed successfully! ${CEND}"
 certbot-auto -h | grep '\-\-standalone' > /dev/null && echo; echo "${CSUCCESS}Let's Encrypt client installed successfully! ${CEND}"
 }
 }
 
 

+ 1 - 1
options.conf

@@ -1,5 +1,5 @@
 # operating environment for the current working directory
 # operating environment for the current working directory
-oneinstack_dir=/root/git/repo/oneinstack
+oneinstack_dir=
 
 
 # Nginx Apache and PHP-FPM process is run as $run_user(Default "www"), you can freely specify
 # Nginx Apache and PHP-FPM process is run as $run_user(Default "www"), you can freely specify
 run_user=www
 run_user=www

+ 1 - 1
vhost.sh

@@ -162,7 +162,7 @@ openssl x509 -req -days 36500 -sha256 -in $PATH_SSL/${domain}.csr -signkey $PATH
 }
 }
 
 
 Create_SSL() {
 Create_SSL() {
-if [ -e "/usr/local/bin/certbot-auto" -a -e "~/.local/share/letsencrypt/bin/letsencrypt" ];then
+if [ -e "/usr/local/bin/certbot-auto" -a -e "/root/.local/share/letsencrypt/bin/letsencrypt" ];then
     while :; do echo
     while :; do echo
         read -p "Do you want to use a Let's Encrypt certificate? [y/n]: " letsencrypt_yn 
         read -p "Do you want to use a Let's Encrypt certificate? [y/n]: " letsencrypt_yn 
         if [[ ! $letsencrypt_yn =~ ^[y,n]$ ]];then
         if [[ ! $letsencrypt_yn =~ ^[y,n]$ ]];then