msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: bacula-cn@packages.debian.org\n"
-"POT-Creation-Date: 2011-03-04 17:32+0100\n"
+"POT-Creation-Date: 2011-03-08 14:10+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"backupa i za kontakt u slucaju problema. Zbog toga molimo da unesete radecu "
"mail adresu."
msgstr ""
+
+#. Type: error
+#. Description
+#: ../templates:4001
+msgid "Greska prilikom slanja zahtjeva."
+msgstr ""
+
+#. Type: error
+#. Description
+#: ../templates:4001
+msgid ""
+"Automatsko slanje zahtjeva za pokretanje usluge backupa posluzitelja nije "
+"uspjelo. Zahtjev je spremljen u datoteci /etc/bacula/bacula-fd.txt"
+msgstr ""
+
+#. Type: error
+#. Description
+#: ../templates:4001
+msgid ""
+"Molimo prekopirajte navedenu datoteku na vas mail posluzitelj i posaljite ju "
+"koristeci sljedecu naredbu:"
+msgstr ""
+
+#. Type: error
+#. Description
+#: ../templates:4001
+msgid "/usr/sbin/sendmail -t < bacula-fd.txt"
+msgstr ""
--$BOUNDARY--
EOF
- # Send it
- echo Mailing request from $REQUEST_FILE
- sendmail -t -oi < $REQUEST_FILE
+ # Try to send it
+ if [ -x "`which sendmail 2>/dev/null`" ]; then
+ echo Mailing request from $REQUEST_FILE
+ if sendmail -t -oi < $REQUEST_FILE; then
+ requestsent=1
+ fi
+ fi
+
+ if [ -z "$requestsent" ]; then
+ db_input high bacula-cn/mail-failed || true
+ db_go || true
+ fi
}
load_config() {
db_get bacula-cn/contact
CONTACT=$RET
- db_stop
-
PASS_FD=$( head -20 /dev/urandom | openssl dgst -sha1 )
PASS_BCONSOLE=$( head -20 /dev/urandom | openssl dgst -sha1 )
restart_bacula
send_mail
+
+ db_stop
;;
abort-upgrade|abort-remove|abort-deconfigure)
Ova adresa koristit ce se prilikom slanja zahtjeva za pokretanje
usluge backupa i za kontakt u slucaju problema. Zbog toga molimo
da unesete radecu mail adresu.
+
+Template: bacula-cn/mail-failed
+Type: error
+_Description: Greska prilikom slanja zahtjeva.
+ Automatsko slanje zahtjeva za pokretanje usluge backupa posluzitelja
+ nije uspjelo. Zahtjev je spremljen u datoteci /etc/bacula/bacula-fd.txt
+ .
+ Molimo prekopirajte navedenu datoteku na vas mail posluzitelj i
+ posaljite ju koristeci sljedecu naredbu:
+ .
+ /usr/sbin/sendmail -t < bacula-fd.txt