From 1375cec93a563d489b8e6fc91a558a98a9f76aee Mon Sep 17 00:00:00 2001 From: Martin Berger Date: Tue, 16 May 2023 20:51:54 +0200 Subject: [PATCH] Update bonus.fints.sh: set default encrypted FinTS PIN within dbsetup.sql --- home.admin/config.scripts/bonus.fints.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/home.admin/config.scripts/bonus.fints.sh b/home.admin/config.scripts/bonus.fints.sh index e0992948a..e4ea1e899 100755 --- a/home.admin/config.scripts/bonus.fints.sh +++ b/home.admin/config.scripts/bonus.fints.sh @@ -251,6 +251,9 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then sudo mariadb -e "GRANT ALL PRIVILEGES ON fints.* TO 'fintsuser' IDENTIFIED BY 'fints';" sudo mariadb -e "FLUSH PRIVILEGES;" if [ -f "dbsetup.sql" ]; then + # set default encrypted PIN 123456789 within dbsetup.sql if not yet set + sudo sed -i -e "s/REPLACE_ENCRYPTED_PIN/$(mvn compile exec:java -Dexec.mainClass="net.petafuel.fuelifints.cryptography.aesencryption.AESUtil" -Dexec.args=123456789 -q)/g" dbsetup.sql + mariadb -ufintsuser -pfints fints < dbsetup.sql else echo "# FAIL - dbsetup.sql not found - deleting code & exit" @@ -427,4 +430,4 @@ fi # just a basic error message when unknown action parameter was given echo "# FAIL - Unknown Parameter $1" -exit 1 \ No newline at end of file +exit 1