Correction : rule_apticron_init : /etc/apticron/apticron.conf .
[lhc/ateliers.git] / vm_hosted
index 750497c..21f56d6 100755 (executable)
--- a/vm_hosted
+++ b/vm_hosted
@@ -64,7 +64,7 @@ rule_apt_init () {
  }
 rule_apticron_init () {
        sudo apt-get install --reinstall apticron
-       mk_reg mod=644 own=root:root /etc/default/grub <<-EOF
+       mk_reg mod=644 own=root:root /etc/apticron/apticron.conf <<-EOF
                EMAIL="admin@heureux-cyclage.org"
                # DIFF_ONLY="1"
                # LISTCHANGES_PROFILE="apticron"
@@ -415,8 +415,8 @@ rule_user_root_init () {
        mk_lnk etc/gpg /root/.gnupg
        mk_lnk etc/ssh /root/.ssh
        getent group sudo |
-       while test -n "$users" && IFS=: read -r group x x users
-        do while IFS=, read -r user users <<-EOF
+       while IFS=: read -r group x x users
+        do while test -n "$users" && IFS=, read -r user users <<-EOF
                        $users
                        EOF
                 do eval local home\; home="~$user"