forked from URZ/admin-tools
Use --quiet for all gpg commands
This commit is contained in:
@@ -74,7 +74,7 @@ if [[ -n "$FTPHOST" ]]; then
|
||||
ERROR "FTP subdirectory required for ftp server backup. Remote ftp backup aborted!"
|
||||
exit 1
|
||||
fi
|
||||
TMP=$(gpg --list-keys --with-colons | grep "$GPGKEY")
|
||||
TMP=$(gpg --quiet --list-keys --with-colons | grep "$GPGKEY")
|
||||
if [[ -z "$TMP" ]]; then
|
||||
ERROR "Public key for encryption of server configuration data not found. Remote ftp backup aborted!"
|
||||
exit 1
|
||||
@@ -82,7 +82,7 @@ if [[ -n "$FTPHOST" ]]; then
|
||||
|
||||
cd $BACKUP_PATH || exit 1
|
||||
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
|
||||
quote USER anonymous
|
||||
|
||||
Reference in New Issue
Block a user