From 4a8ff9bc1f4e602b8a3229aebc59cc612cdbd34d Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Fri, 8 Jan 2010 20:22:12 +0000 Subject: [PATCH] this one was lingering too --- plewww.spec | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 -- 2.43.0