Browse Source

fix add ln & update browsers 25.04.23:21.26

Valery 1 year ago
parent
commit
311c851c16
1 changed files with 4 additions and 4 deletions
  1. 4 4
      rus_mfc-add_deb

+ 4 - 4
rus_mfc-add_deb

@@ -33,19 +33,19 @@ for ((ix = 0; ix != ${#cert_gov[@]}; ix++)); do
33 33
       cd $path_script;
34 34
     fi
35 35
     # для пользователя 
36
-    eval cert8_db="(" $(find $HOME -type f -name cert8.db -printf '%p%f\n') ")";
37
-    eval cert9_db="(" $(find $HOME -type f -name cert9.db -printf '%p%f\n') ")";
36
+    eval cert8_db="(" $(find $HOME -type f -name cert8.db -printf '%p\n') ")";
37
+    eval cert9_db="(" $(find $HOME -type f -name cert9.db -printf '%p\n') ")";
38 38
 #
39 39
     if [ "$(echo -e ${#cert8_db[@]})" != "0" ]; then
40 40
       for ((i_dm = 0; i_dm != ${#cert8_db[@]}; i_dm++)); do
41 41
           certdir=$(dirname ${cert8_db[$i_dm]});
42
-          sudo certutil -A -n "$(echo -e ${cert_gov[$ix]}|sed 's/\_pem.crt//g')" -t "TCu,Cu,Tu" -i $path_script/${cert_gov[$ix]} -d dbm:$certdir;
42
+          sudo certutil -A -n "$cert_name" -t "TCu,Cu,Tu" -i $path_script/${cert_gov[$ix]} -d dbm:$certdir;
43 43
       done
44 44
     fi
45 45
     if [ "$(echo -e ${#cert9_db[@]})" != "0" ]; then
46 46
       for ((i_dm = 0; i_dm != ${#cert9_db[@]}; i_dm++)); do
47 47
           certdir=$(dirname ${cert9_db[$i_dm]});
48
-          sudo certutil -A -n "$(echo -e ${cert_gov[$ix]}|sed 's/\_pem.crt//g')" -t "TCu,Cu,Tu" -i $path_script/${cert_gov[$ix]} -d sql:$certdir
48
+          sudo certutil -A -n "$cert_name" -t "TCu,Cu,Tu" -i $path_script/${cert_gov[$ix]} -d sql:$certdir
49 49
       done
50 50
     fi
51 51
 done