Accepting request 79148 from home:computersalat:devel:proxy

fix bnc#710275

OBS-URL: https://build.opensuse.org/request/show/79148
OBS-URL: https://build.opensuse.org/package/show/server:proxy/cntlm?expand=0&rev=14
This commit is contained in:
Christian Wittmer
2011-08-17 17:16:33 +00:00
committed by Git OBS Bridge
parent 9776d841cf
commit d4bb8168c9
4 changed files with 36 additions and 25 deletions

View File

@@ -55,7 +55,6 @@ test -r $cntlm_sysconfig || { echo "$cntlm_sysconfig not existing";
# some defaults
cntlm_desc="CNTLM Authentication Proxy"
cntlm_pid="/var/run/cntlm/cntlmd.pid"
cntlm_lock="/var/lock/subsys/cntlm"
cntlm_user="-U ${CNTLM_USER:=cntlm}"
cntlm_opts=${CNTLM_OPTS:=""}
@@ -66,6 +65,11 @@ else
cntlm_listen="-l ${CNTLM_LISTEN:=127.0.0.1:3128}"
fi
# check for pid_dir
[ ! -d /var/run/cntlm ] && {
install -d -m0755 -o ${CNTLM_USER:=cntlm} -g root /var/run/cntlm;
}
# Source LSB init functions
# providing start_daemon, killproc, pidofproc,
# log_success_msg, log_failure_msg and log_warning_msg.