replaced argument number of the public key by its equivalent

pull/39/head
Cédric Bonhomme 2017-09-27 10:31:27 +02:00
parent b55c848068
commit 7eb7d03ddf
No known key found for this signature in database
GPG Key ID: A1CB94DE57B7A70D
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ if [ -e $MYSQL_CREDENTIALS ]; then
mysqldump --defaults-file=$MYSQL_CREDENTIALS --databases $CLIENT > $BACKUP_DIR/$CLIENT.sql mysqldump --defaults-file=$MYSQL_CREDENTIALS --databases $CLIENT > $BACKUP_DIR/$CLIENT.sql
echo -e "\e[32mEncrypting database...\e[0m" 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 rm $BACKUP_DIR/$CLIENT.sql
else else