From: elijah Date: Fri, 15 Jul 2005 04:14:56 +0000 (+0000) Subject: git-svn-id: http://code.autistici.org/svn/backupninja/trunk@144 758a04ac-41e6-0310... X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=83ccf1dca6ea3207311555bc725151ff708dd994;p=matthijs%2Fupstream%2Fbackupninja.git git-svn-id: code.autistici.org/svn/backupninja/trunk@144 758a04ac-41e6-0310-8a23-8373a73cc35d --- diff --git a/ninjahelper b/ninjahelper index f487183..aedeaf5 100755 --- a/ninjahelper +++ b/ninjahelper @@ -145,6 +145,23 @@ doaction() { ##################################################### ## begin program +if [ ! -x "`which dialog`" ]; then + echo "ninjahelper is a menu based wizard for backupninja." + echo "It requires 'dialog' in order to run. Do you want to install dialog now?" + while true; do + echo -n "(yes/no): " + read install + if [ "$install" == "yes" ]; then + apt-get install dialog + break + elif [ "$install" == "no" ]; then + exit + else + echo "You must answer 'yes' or 'no'" + fi + done +fi + conffile="/etc/backupninja.conf" if [ ! -r "$conffile" ]; then echo "Configuration file $conffile not found."