From 154f04f2189de4b6d4bb1c89921fc3a915d11369 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Mon, 25 Jun 2012 07:48:21 +0200 Subject: [PATCH] scripts: Use mailx rather than mail, and drop bogus -e --- scripts/backup | 4 ++-- scripts/savecore | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/backup b/scripts/backup index 20a2a6abb..c6c51f06f 100755 --- a/scripts/backup +++ b/scripts/backup @@ -1,6 +1,6 @@ #!/bin/sh -e # Backup script to be run from pre_update_hook -# Written by Markus Armbruster, 2005 +# Written by Markus Armbruster, 2005-2012 # This script is in the public domain. # Use: edit configuration variables below to taste, then set @@ -63,7 +63,7 @@ tar czf $arc . # user's privileges are carefully limited. if [ "$remote_host" ] then - nohup sh -c "scp -qBp '$arc' '$remote_host:$remote_dir' 2>&1 | mail -e -s 'Empire backup save failed' '$email'" /dev/null 2>&1 & + nohup sh -c "scp -qBp '$arc' '$remote_host:$remote_dir' 2>&1 | mailx -s 'Empire backup save failed' '$email'" /dev/null 2>&1 & fi # # A more secure alternative is to replace the scp command by something like diff --git a/scripts/savecore b/scripts/savecore index 8057a0741..e2b2ae0fe 100755 --- a/scripts/savecore +++ b/scripts/savecore @@ -1,6 +1,6 @@ #!/bin/sh -e # Script to save core files, to be run from post_crash_dump_hook -# Written by Markus Armbruster, 2008-2011 +# Written by Markus Armbruster, 2008-2012 # This script is in the public domain. # Use: edit configuration variables below to taste, then set @@ -37,7 +37,6 @@ privlog= # Program to send mail mailx=mailx -#mailx=mail # End of configuration -- 2.43.0