From 7eb7d03ddf501def597c1b7adb284d62e8fcbda5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Bonhomme?= Date: Wed, 27 Sep 2017 10:31:27 +0200 Subject: [PATCH] replaced argument number of the public key by its equivalent --- scripts/backup_db.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/backup_db.sh b/scripts/backup_db.sh index 3866bb4..4c74abd 100755 --- a/scripts/backup_db.sh +++ b/scripts/backup_db.sh @@ -24,7 +24,7 @@ if [ -e $MYSQL_CREDENTIALS ]; then mysqldump --defaults-file=$MYSQL_CREDENTIALS --databases $CLIENT > $BACKUP_DIR/$CLIENT.sql echo -e "\e[32mEncrypting database...\e[0m" - openssl smime -encrypt -binary -text -aes256 -in $BACKUP_DIR/$CLIENT.sql -out $BACKUP_DIR/$CLIENT.sql.enc -outform DER $2 + openssl smime -encrypt -binary -text -aes256 -in $BACKUP_DIR/$CLIENT.sql -out $BACKUP_DIR/$CLIENT.sql.enc -outform DER $PUCLIC_KEY rm $BACKUP_DIR/$CLIENT.sql else