read password from cli, not embedded in a script
authorAndrew Engelbrecht <andrew@fsf.org>
Thu, 18 May 2023 22:38:32 +0000 (18:38 -0400)
committerAndrew Engelbrecht <andrew@fsf.org>
Thu, 18 May 2023 22:38:32 +0000 (18:38 -0400)
the password has also been reset. it was only usable internally

dedupe-mark.py
find-mailing-duplicates.py

index e04f1bd896ff98e14ada0f5d4fdfca66f1051ca9..263403c6c5915fa48bacb86269d427389e0ec728 100755 (executable)
@@ -4,12 +4,13 @@
 #
 # SPDX-License-Identifier: GPL-3.0-or-later
 
+import sys
 import mysql.connector
 
 mydb = mysql.connector.connect(
   host="localhost",
   user="root",
-  password="liFor2Sh",
+  password=sys.argv[1],
   database="civicrm"
 )
 
index b8cbe287888d0a1633c3cbaf56d43f9a9b703b17..93c824b2046097098b597c09cb3b780949755f59 100755 (executable)
@@ -35,7 +35,7 @@ sys.stderr.write('\nstarting new run... %s\n\n' % date.today())
 mydb = mysql.connector.connect(
   host="localhost",
   user="root",
-  password="liFor2Sh",
+  password=sys.argv[1],
   database="civicrm"
 )