dépôts
/
lhc
/
ateliers.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Documentation : README : rule_user_admin_add .
[lhc/ateliers.git]
/
vm_hosted
diff --git
a/vm_hosted
b/vm_hosted
index
b467527
..
8d2470f
100755
(executable)
--- 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) ;
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:
Voir \`$tool/vm_host' pour les règles côté machine hôte ($vm_host).
SYNTAX: $0 \$RULE \${RULE}_SYNTAX
RULES:
@@
-31,12
+32,12
@@
rule_git_config () {
rule_git_reset () {
(
cd "$tool"
rule_git_reset () {
(
cd "$tool"
- git checkout -f -B master
origin
+ git checkout -f -B master
remotes/master
git clean -f -d -x
)
}
git clean -f -d -x
)
}
-rule_
chrooted () {
+rule_
_chrooted_init () { # NOTE: est-ce bien utile à un moment ?
export LANG=C
export LC_CTYPE=C
. /etc/profile
export LANG=C
export LC_CTYPE=C
. /etc/profile
@@
-64,7
+65,7
@@
rule_apt_init () {
}
rule_apticron_init () {
sudo apt-get install --reinstall apticron
}
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"
EMAIL="admin@heureux-cyclage.org"
# DIFF_ONLY="1"
# LISTCHANGES_PROFILE="apticron"
@@
-835,7
+836,6
@@
case $rule in
(help);;
(*)
assert 'test "$(hostname --fqdn)" = "$vm_fqdn"' vm_fqdn
(help);;
(*)
assert 'test "$(hostname --fqdn)" = "$vm_fqdn"' vm_fqdn
- ${TRACE:+set -x}
;;
esac
rule $rule "$@"
;;
esac
rule $rule "$@"