X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=vm_hosted;h=8afa6b4b0432defaa7114a7b9a0c3c7a6e2874a7;hb=fe76c838090f262ec477c6a73d1bf9d988033b56;hp=750497cb9ab5893e954bbc4709b36014719f4c9c;hpb=910b5358868be624ddf79e5c8e8dd46b0d403b4b;p=lhc%2Fateliers.git diff --git a/vm_hosted b/vm_hosted index 750497c..8afa6b4 100755 --- a/vm_hosted +++ b/vm_hosted @@ -10,7 +10,8 @@ rule_help () { # SYNTAX: [--hidden] DESCRIPTION: ce script regroupe des règles pour administrer la VM ($vm_fqdn) _depuis_ la VM hébergée ($vm_fqdn) ; - il sert à la fois d'outil et de documentation. + il sert à la fois d'outil (aisément bidouillable) + et de documentation (préçise). Voir \`$tool/vm_host' pour les règles côté machine hôte ($vm_host). SYNTAX: $0 \$RULE \${RULE}_SYNTAX RULES: @@ -64,7 +65,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 +416,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"