made root privileges optional
This commit is contained in:
parent
674b44dd84
commit
06598d00ac
|
@ -79,8 +79,9 @@ preflight()
|
||||||
{
|
{
|
||||||
#amiroot?
|
#amiroot?
|
||||||
if ( ! amiroot ); then
|
if ( ! amiroot ); then
|
||||||
echo "aborting mission. you must be root"
|
echo "warning: in order to conserve owner and group attributes"
|
||||||
return 1
|
echo "warning: you need to run sshbackup as root."
|
||||||
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#source and destination path?
|
#source and destination path?
|
||||||
|
|
Reference in New Issue