Parcourir la source

[fix] Ending i not needed to delete the line

ljf (zamentur) il y a 3 ans
Parent
commit
20b8cee545
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      scripts/config

+ 1 - 1
scripts/config

@@ -248,7 +248,7 @@ ynh_app_config_validate() {
         for rm_regex in "$(jq --raw-output '.openvpn_rm[]' "${config_file}")"
         do
             if [ ! -z "${rm_regex}" ] ; then
-                sed -i "/$rm_regex/di" $tmp_dir/client.conf.tpl
+                sed -i "/$rm_regex/d" $tmp_dir/client.conf.tpl
             fi
         done