Added tests before making directories.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@237 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2003-01-03 16:47:11 +00:00
parent 49a6fc6c3e
commit 3ca1351680
2 changed files with 6 additions and 6 deletions

View File

@ -13,7 +13,7 @@ EXTRA_DIST = $(web_DATA)
# Yes, you are correct. This is a HACK!
install-data-local:
( cd $(webdir); chown $(webuser):$(webgroup) $(web_DATA) )
@-( cd $(webdir); mkdir images; chown $(webuser):$(webgroup) images; chmod u+w images )
@-( cd $(webdir); mkdir sounds; chown $(webuser):$(webgroup) sounds; chmod u+w sounds )
@-( cd $(webdir); mkdir temp; chown $(webuser):$(webgroup) temp; chmod u+w temp )
@-( cd $(webdir); if ! test -e images; then mkdir images; fi; chown $(webuser):$(webgroup) images; chmod u+w images )
@-( cd $(webdir); if ! test -e sounds; then mkdir sounds; fi; chown $(webuser):$(webgroup) sounds; chmod u+w sounds )
@-( cd $(webdir); if ! test -e temp; then mkdir temp; fi; chown $(webuser):$(webgroup) temp; chmod u+w temp )
-( cd $(webdir); ln -s zm.php index.php )

View File

@ -213,9 +213,9 @@ maintainer-clean-generic clean mostlyclean distclean maintainer-clean
# Yes, you are correct. This is a HACK!
install-data-local:
( cd $(webdir); chown $(webuser):$(webgroup) $(web_DATA) )
@-( cd $(webdir); mkdir images; chown $(webuser):$(webgroup) images; chmod u+w images )
@-( cd $(webdir); mkdir sounds; chown $(webuser):$(webgroup) sounds; chmod u+w sounds )
@-( cd $(webdir); mkdir temp; chown $(webuser):$(webgroup) temp; chmod u+w temp )
@-( cd $(webdir); if ! test -e images; then mkdir images; fi; chown $(webuser):$(webgroup) images; chmod u+w images )
@-( cd $(webdir); if ! test -e sounds; then mkdir sounds; fi; chown $(webuser):$(webgroup) sounds; chmod u+w sounds )
@-( cd $(webdir); if ! test -e temp; then mkdir temp; fi; chown $(webuser):$(webgroup) temp; chmod u+w temp )
-( cd $(webdir); ln -s zm.php index.php )
# Tell versions [3.59,3.63) of GNU make to not export all variables.