X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plewww.spec;h=cac26a4707aee645bed1d028635c5d38d9c03568;hb=4a8ff9bc1f4e602b8a3229aebc59cc612cdbd34d;hp=47c3bf1e4c1abca2b484edacbcdbc459a36177dc;hpb=f2c8d17b0c549d8e3cd7cf665f84bfb71cde7398;p=plewww.git diff --git a/plewww.spec b/plewww.spec index 47c3bf1..cac26a4 100644 --- a/plewww.spec +++ b/plewww.spec @@ -103,10 +103,12 @@ fi popd # hack the welcome page for MyPLC pushd /var/www/html/modules -if [ ! -f node.module.drupal ] ; then - cp node.module node.module.drupal - [ -f /var/www/html/drupal-hacks/node.module ] && cp -f /var/www/html/drupal-hacks/node.module /var/www/html/modules/node.module -fi +for module in user node; do + # backup only once + [ -f ${module}.module.drupal ] || cp ${module}.module ${module}.module.drupal + # always update so a change in our file can make through + cp -f /var/www/html/drupal-hacks/${module}.module /var/www/html/modules/${module}.module +done popd %clean