517 |
|
|
518 |
if [ $TEST = "n" ]; then |
if [ $TEST = "n" ]; then |
519 |
echo "Stopping Services and running backup" |
echo "Stopping Services and running backup" |
520 |
echo "Test $TEST" |
|
521 |
exit 1 |
# uncomment to test Test and prevent backup running |
522 |
|
# echo "Test mode $TEST" |
523 |
|
# exit 1 |
524 |
|
|
525 |
#### stop services so no changes occurs |
#### stop services so no changes occurs |
526 |
if [ -e /usr/lib/systemd/system/qmail.service ]; then |
if [ -e /usr/lib/systemd/system/qmail.service ]; then |
548 |
|
|
549 |
else |
else |
550 |
echo "Test mode enabled - no backup run" |
echo "Test mode enabled - no backup run" |
551 |
echo "Test $TEST" |
echo "Test mode $TEST" |
552 |
exit 0 |
exit 0 |
553 |
fi |
fi |
554 |
|
|