Browse Source

Обновить 'avto4certbot/avto4certbot.sh'

Берсенев Валерий 8 months ago
parent
commit
17d275f740
1 changed files with 1 additions and 1 deletions
  1. 1 1
      avto4certbot/avto4certbot.sh

+ 1 - 1
avto4certbot/avto4certbot.sh

@@ -11,7 +11,7 @@ sname="avto4certbot";
11
 path_ssl="/etc/ssl";
11
 path_ssl="/etc/ssl";
12
 path_cert="/etc/letsencrypt/live";
12
 path_cert="/etc/letsencrypt/live";
13
 # script path
13
 # script path
14
-path_script=$( cd -- $( dirname -- "${BASH_SOURCE[0]}" ) &> /dev/null && pwd );
14
+path_script="$(dirname $(readlink --canonicalize-existing "$0"))";
15
 source "$path_script/avto4certbot.conf";
15
 source "$path_script/avto4certbot.conf";
16
 
16
 
17
 ## - nginx
17
 ## - nginx