-
Notifications
You must be signed in to change notification settings - Fork 24
/
README.hooks
67 lines (61 loc) · 1.38 KB
/
README.hooks
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
Hooks
=====
Since version 0.8.1, apt-dater can call hooks before and after doing an
action on a host. Hooks executables are located in:
+---------+---------------------------+
| action | path |
+---------+---------------------------+
| connect | /etc/apt-dater/pre-con.d |
| | /etc/apt-dater/post-con.d |
| install | /etc/apt-dater/pre-ins.d |
| | /etc/apt-dater/post-ins.d |
| refresh | /etc/apt-dater/pre-ref.d |
| | /etc/apt-dater/post-ref.d |
| upgrade | /etc/apt-dater/pre-upg.d |
| | /etc/apt-dater/post-upg.d |
+---------+---------------------------+
The executables are run by run-parts(8). The environment contains
informations about the action, the host and the configuration
of apt-dater.
action:
AD_ACTION
AD_PARAM
host data:
AD_HIST_PATH
AD_HOSTNAME
AD_GROUP
AD_SSH_ID
AD_SSH_PORT
AD_SSH_USER
AD_STATSFILE
AD_KERNEL
AD_LSB_DISTRI
AD_LSB_RELEASE
AD_LSB_CODENAME
AD_UNAME_KERNEL
AD_UNAME_MACHINE
AD_UUID
AD_VIRT
apt-dater configuration:
AD_CMD_INSTALL
AD_CMD_REFRESH
AD_CMD_UPGRADE
AD_HIST_ERRPATTERN
AD_HIST_RECORD
AD_HOOK_POST_CONNECT
AD_HOOK_POST_INSTALL
AD_HOOK_POST_REFRESH
AD_HOOK_POST_UPDATE
AD_HOOK_PRE_CONNECT
AD_HOOK_PRE_INSTALL
AD_HOOK_PRE_REFRESH
AD_HOOK_PRE_UPDATE
AD_HOSTSFILE
AD_MAINTAINER
AD_SCREENRCFILE
AD_SFTP_CMD
AD_SSH_CMD
AD_SSH_OPTFLAGS
AD_STATSDIR
AD_CLUSTERS
AD_CLUSTER%d