aboutsummaryrefslogtreecommitdiff
path: root/ninjahelper
diff options
context:
space:
mode:
authorElijah Saxon <elijah@riseup.net>2005-07-15 04:14:56 +0000
committerElijah Saxon <elijah@riseup.net>2005-07-15 04:14:56 +0000
commit581049b6b103ed64c7a7ccb7b364a9d9b1597495 (patch)
treee9b82225ac14365757b26bda5e77d6dc80e8c83b /ninjahelper
parent1f290a8a23f09a6f3563b03a98b5b3ce70d664d8 (diff)
downloadbackupninja-581049b6b103ed64c7a7ccb7b364a9d9b1597495.tar.gz
backupninja-581049b6b103ed64c7a7ccb7b364a9d9b1597495.tar.bz2
Diffstat (limited to 'ninjahelper')
-rwxr-xr-xninjahelper17
1 files changed, 17 insertions, 0 deletions
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."