From: Ludovic CHEVALIER Date: Tue, 19 Feb 2013 16:08:29 +0000 (+0100) Subject: [rule hosted] +apticron_init X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=commitdiff_plain;h=95955dc2c60de318b36d09e22494c7841fbc6f1a [rule hosted] +apticron_init --- diff --git a/vm_hosted b/vm_hosted index bd4d064..0514a43 100755 --- a/vm_hosted +++ b/vm_hosted @@ -313,6 +313,25 @@ rule__boot_init () { sudo update-grub2 # NOTE: prend en compte /boot/grub/device.map rule__initramfs_init } +rule_apticron_init () { + sudo apt-get install --reinstall apticron + mk_reg mod=644 own=root:root /etc/default/grub <<-EOF + EMAIL="admin@heureux-cyclage.org" + # DIFF_ONLY="1" + # LISTCHANGES_PROFILE="apticron" + # ALL_FQDNS="1" + # SYSTEM="foobar.example.com" + # IPADDRESSNUM="1" + # IPADDRESSES="192.0.2.1 2001:db8:1:2:3::1" + # NOTIFY_HOLDS="0" + # NOTIFY_NEW="0" + # NOTIFY_NO_UPDATES="0" + # CUSTOM_SUBJECT="" + # CUSTOM_NO_UPDATES_SUBJECT="" + # CUSTOM_FROM="root@ateliers.heureux-cyclage.org" + EOF + sudo service apticron restart + } rule__bin_init () { mk_lnk "$tool"/vm_hosted /usr/local/sbin/ } diff --git a/vm_remote b/vm_remote index 237f421..02b9540 100755 --- a/vm_remote +++ b/vm_remote @@ -79,7 +79,7 @@ case $rule in (*) test ! "$(hostname --fqdn)" = "$vm_fqdn" test ! "$(hostname --fqdn)" = "$vm_host" - set "${TRACE:+-x}" + set -x ;; esac rule_$rule "$@"