mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-28 16:58:03 +01:00
Update bonus.fints.sh: set default encrypted FinTS PIN within dbsetup.sql
This commit is contained in:
parent
9f6326d127
commit
1375cec93a
1 changed files with 4 additions and 1 deletions
|
@ -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 "GRANT ALL PRIVILEGES ON fints.* TO 'fintsuser' IDENTIFIED BY 'fints';"
|
||||||
sudo mariadb -e "FLUSH PRIVILEGES;"
|
sudo mariadb -e "FLUSH PRIVILEGES;"
|
||||||
if [ -f "dbsetup.sql" ]; then
|
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
|
mariadb -ufintsuser -pfints fints < dbsetup.sql
|
||||||
else
|
else
|
||||||
echo "# FAIL - dbsetup.sql not found - deleting code & exit"
|
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
|
# just a basic error message when unknown action parameter was given
|
||||||
echo "# FAIL - Unknown Parameter $1"
|
echo "# FAIL - Unknown Parameter $1"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Add table
Reference in a new issue