Use --quiet for all gpg commands

This commit is contained in:
2024-01-12 11:36:55 +01:00
parent c7e44ca8cc
commit 4f470c6739

View File

@@ -74,7 +74,7 @@ if [[ -n "$FTPHOST" ]]; then
ERROR "FTP subdirectory required for ftp server backup. Remote ftp backup aborted!" ERROR "FTP subdirectory required for ftp server backup. Remote ftp backup aborted!"
exit 1 exit 1
fi fi
TMP=$(gpg --list-keys --with-colons | grep "$GPGKEY") TMP=$(gpg --quiet --list-keys --with-colons | grep "$GPGKEY")
if [[ -z "$TMP" ]]; then if [[ -z "$TMP" ]]; then
ERROR "Public key for encryption of server configuration data not found. Remote ftp backup aborted!" ERROR "Public key for encryption of server configuration data not found. Remote ftp backup aborted!"
exit 1 exit 1
@@ -82,7 +82,7 @@ if [[ -n "$FTPHOST" ]]; then
cd $BACKUP_PATH || exit 1 cd $BACKUP_PATH || exit 1
rm -f "$BACKUP_FILE.gz.gpg" rm -f "$BACKUP_FILE.gz.gpg"
gpg --quiet --encrypt -r "$GPGKEY" --trusted-key "$GPGKEY" "$BACKUP_FILE.gz" >/dev/null gpg --quiet --encrypt -r "$GPGKEY" --trusted-key "$GPGKEY" "$BACKUP_FILE.gz"
ftp -p -n "$FTPHOST" >/dev/null <<EOI ftp -p -n "$FTPHOST" >/dev/null <<EOI
quote USER anonymous quote USER anonymous