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