
yusufg at outblaze
Nov 26, 2001, 12:29 AM
Post #1 of 2
(993 views)
Permalink
|
|
Patch to precompile to not hardcode 'chown nobody'
|
|
Hi, It seems that precompile hardcodes or picks up 'nobody' from the default Apache config. I would like to use the values from --server-uid and --server-gid to chown the prefix/backhand directory. This allows me to setup/install mod_backhand without having to become root Also precompile doesn't chmod 755 ./configure in the Apache dir after it finishes. The enclosed patch seems to do the right thing Patch against mod_backhand 1.20 Regards, Yusuf -- Yusuf Goolamabbas yusufg[at]outblaze.com --- precompile.orig Mon Nov 26 14:40:34 2001 +++ precompile Mon Nov 26 14:52:03 2001 @@ -46,6 +46,7 @@ echo ' module_so=yes'; \ echo ' fi'; \ tail -`echo "$FC $FO - p" | dc` "$CONF.bak") > $CONF + chmod 755 $CONF rm "$CONF".bak else echo " already there!? (you do this already?)" @@ -195,7 +196,8 @@ mv $TMPL "$TMPL".bak (head -$HC "$TMPL".bak;\ echo " \$(MKDIR) \$(root)\$(prefix)/backhand";\ - echo " chown $APUSER \$(root)\$(prefix)/backhand";\ + echo " chown \$(conf_user) \$(root)\$(prefix)/backhand";\ + echo " chgrp \$(conf_group) \$(root)\$(prefix)/backhand";\ echo " chmod 700 \$(root)\$(prefix)/backhand";\ tail -`echo "$FC $HC - p" | dc` "$TMPL.bak") > $TMPL rm "$TMPL".bak
|