- require php-devel to build custom xmlrpc.so extension
[myplc.git] / build.sh
index 545d040..db225bf 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -95,8 +95,10 @@ datadirs=(
 )
 for datadir in "${datadirs[@]}" ; do
     # If we are being re-run, it may be a symlink
-    rm -f root/$datadir || :
-    mkdir -p root/$datadir
+    if [ -h root/$datadir ] ; then
+       rm -f root/$datadir
+       mkdir -p root/$datadir
+    fi
 done
 
 echo "* myplc: Installing base filesystem"
@@ -131,12 +133,8 @@ install -m 755 \
 # Install web pages
 echo "* myplc: Installing web pages"
 mkdir -p root/var/www/html
-# Exclude old cruft, unrelated GENI pages, and official documents
 rsync -a $srcdir/new_plc_www/ root/var/www/html/
 
-# Make the Drupal files upload directory owned by Apache
-chown apache:apache root/var/www/html/files
-
 # Install Drupal rewrite rules
 install -D -m 644 $srcdir/new_plc_www/drupal.conf root/etc/httpd/conf.d/drupal.conf