david/sshbackup
david
/
sshbackup
Archived
1
0
Fork 0

made root privileges optional

This commit is contained in:
david 2013-07-01 22:09:19 +02:00
parent 674b44dd84
commit 06598d00ac
1 changed files with 3 additions and 2 deletions

View File

@ -79,8 +79,9 @@ preflight()
{
#amiroot?
if ( ! amiroot ); then
echo "aborting mission. you must be root"
return 1
echo "warning: in order to conserve owner and group attributes"
echo "warning: you need to run sshbackup as root."
return 0
fi
#source and destination path?