Revision 8c37d618

b/daemons/daemon-util.in
20 20

  
21 21
set -e
22 22

  
23
defaults_file=@SYSCONFDIR@/default/ganeti
23
readonly defaults_file="${GANETI_ROOTDIR}@SYSCONFDIR@/default/ganeti"
24
readonly localstatedir="${GANETI_ROOTDIR}@LOCALSTATEDIR@"
24 25

  
25 26
# This is a list of all daemons and the order in which they're started. The
26 27
# order is important as there are dependencies between them. On shutdown,
......
52 53
}
53 54

  
54 55
_daemon_pidfile() {
55
  echo "@LOCALSTATEDIR@/run/ganeti/$1.pid"
56
  echo "$localstatedir/run/ganeti/$1.pid"
56 57
}
57 58

  
58 59
_daemon_executable() {
......
81 82

  
82 83
# Checks whether the local machine is part of a cluster
83 84
check_config() {
84
  local server_pem=@LOCALSTATEDIR@/lib/ganeti/server.pem
85
  local server_pem=$localstatedir/lib/ganeti/server.pem
85 86
  local fname
86 87

  
87 88
  for fname in $server_pem; do

Also available in: Unified diff