4 if [ -f /etc/bacula/bacula-fd.conf ];then
5 cli="/etc/bacula/bacula-fd.conf"
9 if [ $cli = "NOT" ];then
10 if [ -f /opt/etc/bacula/bacula-fd.conf ];then
11 cli="/opt/etc/bacula/bacula-fd.conf"
17 if [ -f ../../../scripts/nozen ]; then
23 if [ $cli = "NOT" ] ;then
24 $DIALOG --title "lookin for bacula-fd.conf" --msgbox "oops, couldn't find a bacula-fd.conf \n I'm afraid you'll have to locate it yourself ..." 10 60
25 $DIALOG --backtitle "Where is bacula-fd.conf? " --title "(spacebar to select)" --aspect 12 --begin 4 3 --fselect / 30 60 2>tmp
28 $DIALOG --title "No bacula-fd.conf" --msgbox "I AM AFRAID WE CAN'T DO ANYTHING WITHOUT A bacula-fd.conf \n \n \n THIS USB KEY WILL BE USELESS WITHOUT BACULA RUNNING ON THE CLIENT \n \n \n ABORTING !!!!!!!!!!!!!!!!!!" 600 600
29 echo "aborted!!!!!!!!!!!"
37 echo $bakonf|grep bacula-fd.conf
39 $DIALOG --title "No bacula-fd.conf" --msgbox "I AM AFRAID WE CAN'T DO ANYTHING WITHOUT A bacula-fd.conf \n \n \n THIS USB KEY WILL BE USELESS WITHOUT BACULA RUNNING ON THE CLIENT \n \n \n ABORTING !!!!!!!!!!!!!!!!!!" 600 600
40 echo "aborted!!!!!!!!!!!"
45 cp $bakonf ../diskinfo/
47 if [ ! $cli = "NOT" ] ;then
48 $DIALOG --title "lookin for bacula-fd.conf" --yesno "we found a conf file in $cli, is that correct?" 10 60
55 $DIALOG --backtitle "Where is bacula-fd.conf? " --title "(spacebar to select)" --aspect 12 --begin 4 3 --fselect / 30 60 2>tmp
57 $DIALOG --title "No bacula-fd.conf" --msgbox "I AM AFRAID WE CAN'T DO ANYTHING WITHOUT A bacula-fd.conf \n \n \n THIS USB KEY WILL BE USELESS WITHOUT BACULA RUNNING ON THE CLIENT \n \n \n ABORTING !!!!!!!!!!!!!!!!!!" 600 600
58 echo "aborted!!!!!!!!!!!"
66 echo $bakonf|grep bacula-fd.conf
68 $DIALOG --title "No bacula-fd.conf" --msgbox "I AM AFRAID WE CAN'T DO ANYTHING WITHOUT A bacula-fd.conf \n \n \n THIS USB KEY WILL BE USELESS WITHOUT BACULA RUNNING ON THE CLIENT \n \n \n ABORTING !!!!!!!!!!!!!!!!!!" 600 600
69 echo "aborted!!!!!!!!!!!"
72 cp $bakonf ../diskinfo/
76 if [ -f /etc/bacula/bconsole.conf ];then
77 cli="/etc/bacula/bconsole.conf"
81 if [ $cli = "NOT" ];then
82 if [ -f /opt/etc/bacula/bconsole.conf ];then
83 cli="/opt/etc/bacula/bconsole.conf"
89 if [ $cli = "NOT" ] ;then
90 $DIALOG --title "bconsole" --yesno "do you have bconsole installed on this machine ?" 10 60
94 $DIALOG --title "lookin for bconsole.conf" --msgbox "oops, couldn't find a bconsole.conf \n I'm afraid you'll have to locate it yourself ..." 10 60
95 $DIALOG --backtitle "Where is bconsole.conf? " --title "(spacebar to select)" --aspect 12 --begin 4 3 --fselect / 30 60 2>tmp
97 $DIALOG --title "No bconsole.conf" --msgbox "O.K. We'll do without it \n but you will need to know your director's version \n when you restore" 10 60
105 cp $bakonf ../diskinfo/
108 $DIALOG --title "No bconsole.conf" --msgbox "O.K. We'll do without it \n but you will need to know your director's version \n when you restore" 10 60
113 if [ ! $cli = "NOT" ] ;then
114 $DIALOG --title "lookin for bconsole.conf" --yesno "we found a conf file in $cli, is that correct?" 10 60
117 cp $bakonf ../diskinfo/
120 $DIALOG --backtitle "Where is bconsole.conf? " --title "(spacebar to select)" --aspect 12 --begin 4 3 --fselect / 30 60 2>tmp
122 $DIALOG --title "No bconsole.conf" --msgbox "O.K. We'll do without it \n but you will need to know your director's version \n when you restore" 10 60
129 echo $bakonf |grep bconsole.conf
131 cp $bakonf ../diskinfo/
133 $DIALOG --title "No bconsole.conf" --msgbox "That was no bconsole.conf, \n \n O.K. We'll do without it \n but you will need to know your director's version \n when you restore" 10 60