]> git.mxchange.org Git - friendica.git/blobdiff - src/Console/Config.php
Use the existing VAPID key generation
[friendica.git] / src / Console / Config.php
index d9fab41c147ec7098df7a9c116bd3013964cc122..3c775d43292053a58cc7ba7e580b249a3ab1584b 100644 (file)
@@ -128,6 +128,10 @@ HELP;
                                throw new RuntimeException("$cat.$key is an array and can't be set using this command.");
                        }
 
+                       if ($this->config->get($cat, $key) === $value) {
+                               throw new RuntimeException("$cat.$key already set to $value.");
+                       }
+
                        $result = $this->config->set($cat, $key, $value);
                        if ($result) {
                                $this->out("{$cat}.{$key} <= " .