mirror of
https://0xacab.org/liberate/backupninja.git
synced 2024-11-10 04:42:31 +01:00
This commit is contained in:
parent
1f290a8a23
commit
581049b6b1
17
ninjahelper
17
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."
|
||||
|
Loading…
Reference in New Issue
Block a user