rpm 설치하는데 install directory가 잡히지 안네요..

우선 잠쉬..rpm님 답변 고맙습니다... ^^;
DocumentRoot "/var/www/work/www"
# This should be changed to whatever you set DocumentRoot to.
# even if you change the DocumentRoot. Comment it if you don't
want to
# DocumentRoot /www/docs/dummy-host.example.com
#DocumentRoot /user/test4/html
#DocumentRoot /user/south9/html
#DocumentRoot /user/south9/html
#DocumentRoot /user/south9/html
/var/tmp/rpm-tmp.82154 line 27 unexpected EOF while looking for
matching `"'
error Bad exit status from /var/tmp/rpm-tmp.82154 (%build)
Bad exit status from /var/tmp/rpm-tmp.82154 (%build)
TESTDIR=$(grep DocumentRoot /etc/httpd/conf/httpd.conf)
DEST_DIR=${TEST##*"}
DEST_DIR=${DEST_DIR%%"*}
%install
mkdir -p $RPM_BUILD_ROOT/$DEST_DIR
cp -rf * $RPM_BUILD_ROOT/$DEST_DIR/
%clean
그런데 $DEST_DIR이 여러개 일수 있잖아요.. 그래서 애러가 나는거
같은데...
그냥 프롬프트에서 grep DocumentRoot /usr/local/apache/conf |
awk '{print $2}' 이런식으로 하면
DocumentRoot
"/var/www/work/www"
This
even
DocumentRoot
/user/test4/html
/user/south9/html
/user/south9/html
/user/south9/html
이런 식으로 나오거든요.. 여기서 제가 필요한건 " /var/www/work/www "
이거 거든요.. 어떻게 DocumentRoot를 install dir로 만들수 있을까요..
스크립트 애러 나던데요.. 제가 뭐 잘못이해한거 같은뎅.. ㅜㅜ
Re: rpm 설치하는데 install directory가 잡히지 안네요..
TEMP_DIR=$(grep ^DocumentRoot /etc/httpd/conf/httpd.conf)
라고 해보세여..
그리구..
DEST_DIR=${TEMP_DIR%*\"}
DEST_DIR=${DEST_DIR#*\"}
로 수정하세요..
\ == 역 슬레쉬입니다.
)
그 이하 줄은 같습니다.
그럼
댓글 달기