X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/?a=blobdiff_plain;f=vm_hosted;h=847b818592963ac19ecc98baf455961426391903;hb=7313fbbd10b0321c3e460639137f0e0e9ed9dcad;hp=9121320e638d3564d374e2a7c48593617ccf4654;hpb=b29eee4bccda9713ca66f55f8ac382e688d5078c;p=lhc%2Fateliers.git diff --git a/vm_hosted b/vm_hosted index 9121320..847b818 100755 --- a/vm_hosted +++ b/vm_hosted @@ -1,8 +1,9 @@ #!/bin/sh set -e -f ${DRY_RUN:+-n} -u tool=${0%/*} -. "$tool"/lib/functions.sh +. "$tool"/lib/rule.sh . "$tool"/etc/vm.sh +. "$tool"/lib/mk.sh rule_help () { # SYNTAX: [--hidden] local hidden; [ ${1:+set} ] || hidden=set @@ -90,7 +91,6 @@ rule_apticron_configure () { # CUSTOM_NO_UPDATES_SUBJECT="" # CUSTOM_FROM="root@ateliers.heureux-cyclage.org" EOF - sudo service apticron restart } rule_boot_configure () { warn "attention à n'installer GRUB sur AUCUN disque proposé !" @@ -449,10 +449,11 @@ rule_configure () { rule login_configure rule user_root_configure rule boot_configure + rule apticron_configure rule bin_configure } -rule_disk_key_change () { +rule_luks_key_change () { sudo cryptsetup luksChangeKey /dev/$vm_lvm_vg/${vm_lvm_lv}_root }