+bacula-cn (20210226+cn9u4) unstable; urgency=medium
+
+ * Pinning na inačicu 7.4.4*
+
+ -- Zeljko Boros <Zeljko.Boros@carnet.hr> Mon, 19 Apr 2021 14:58:58 +0200
+
bacula-cn (20210226+cn9u3) unstable; urgency=medium
* Dodano popravljanje permisija nad certifikatom i nekim
chmod 640 /etc/bacula/bacula-fd.pem /etc/bacula/bacula-fd.conf /etc/bacula/bconsole.conf
}
+set_pinning() {
+ # set pin to version from stretch, because bacula 9.* isn't compatible
+
+ PINFILE=/etc/apt/preferences.d/99-carnet
+
+ test -f $PINFILE || touch $PINFILE
+
+ cp-update bacula-cn $PINFILE <<EOF
+Package: bacula-fd
+Pin: version 7.4.4*
+Pin-Priority: 1001
+
+Package: bacula-common
+Pin: version 7.4.4*
+Pin-Priority: 1001
+
+Package: bacula-console
+Pin: version 7.4.4*
+Pin-Priority: 1001
+EOF
+
+}
+
load_config() {
db_get bacula-cn/hostname
HOST=$RET
generate_bconsole_config
fix_privileges
+ set_pinning
restart_bacula
send_request