File tree Expand file tree Collapse file tree 4 files changed +23
-7
lines changed Expand file tree Collapse file tree 4 files changed +23
-7
lines changed Original file line number Diff line number Diff line change 55
55
56
56
HTTPD_PARA=" "
57
57
58
- for DEFAULT_HTTPD_PATH in ' /usr/sbin/httpd' ' /usr/sbin/apache2'
58
+ for DEFAULT_HTTPD_PATH in ' /usr/sbin/httpd' \
59
+ ' /usr/sbin/apache2' \
60
+ " $( command -v httpd) " \
61
+ " $( command -v apache2) "
59
62
do
60
- if test -x " $DEFAULT_HTTPD_PATH "
63
+ if test -n " $DEFAULT_HTTPD_PATH " && test - x " $DEFAULT_HTTPD_PATH "
61
64
then
62
65
break
63
66
fi
64
67
done
65
68
69
+ if test -x " $DEFAULT_HTTPD_PATH "
70
+ then
71
+ DETECTED_HTTPD_ROOT=" $( " $DEFAULT_HTTPD_PATH " -V 2> /dev/null | sed -n ' s/^ -D HTTPD_ROOT="\(.*\)"$/\1/p' ) "
72
+ fi
73
+
66
74
for DEFAULT_HTTPD_MODULE_PATH in ' /usr/libexec/apache2' \
67
75
' /usr/lib/apache2/modules' \
68
76
' /usr/lib64/httpd/modules' \
69
77
' /usr/lib/httpd/modules' \
70
- ' /usr/libexec/httpd'
78
+ ' /usr/libexec/httpd' \
79
+ " ${DETECTED_HTTPD_ROOT: +${DETECTED_HTTPD_ROOT} / modules} "
71
80
do
72
- if test -d " $DEFAULT_HTTPD_MODULE_PATH "
81
+ if test -n " $DEFAULT_HTTPD_MODULE_PATH " && test - d " $DEFAULT_HTTPD_MODULE_PATH "
73
82
then
74
83
break
75
84
fi
Original file line number Diff line number Diff line change 1
- user@host:xb4E8pqD81KQs
1
+ user@host:$apr1$LGPmCZWj$9vxEwj5Z5GzQLBMxp3mCx1
Original file line number Diff line number Diff line change 1
- proxuser:2x7tAukjAED5M
1
+ proxuser:$apr1$RxS6MLkD$DYsqQdflheq4GPNxzJpx5.
Original file line number Diff line number Diff line change @@ -46,6 +46,14 @@ setup_hook()
46
46
" passed to setup_hook" >&2 ; return 1; }
47
47
echo " cnt=$skip_revs " > " $hook_type -counter"
48
48
rm -f " $rawsvnrepo /hooks/" * -commit # drop previous hooks
49
+
50
+ # Subversion hooks run with an empty environment by default. We thus
51
+ # need to propagate PATH so that we can find executables.
52
+ cat > " $rawsvnrepo /conf/hooks-env" << -EOF
53
+ [default]
54
+ PATH = ${PATH}
55
+ EOF
56
+
49
57
hook=" $rawsvnrepo /hooks/$hook_type "
50
58
cat > " $hook " << - 'EOF1 '
51
59
#!/bin/sh
63
71
if [ " $hook_type " = " pre-commit" ]; then
64
72
echo " echo 'commit disallowed' >&2; exit 1" >> " $hook "
65
73
else
66
- echo " PATH=\" $PATH \" ; export PATH" >> " $hook "
67
74
echo " svnconf=\" $svnconf \" " >> " $hook "
68
75
cat >> " $hook " << - 'EOF2 '
69
76
cd work-auto-commits.svn
You can’t perform that action at this time.
0 commit comments