diff options
author | drebs <drebs@riseup.net> | 2010-02-16 19:08:55 -0200 |
---|---|---|
committer | drebs <drebs@riseup.net> | 2010-02-16 19:08:55 -0200 |
commit | 06c5be320b0ee5842584224e26e379cd8c517421 (patch) | |
tree | 3080e6f978c05f704749e0b54ac33f35d05a9da7 | |
parent | 0c10b6450c024c1a765eb9c882c359506b396454 (diff) | |
download | puppet-pmwiki-06c5be320b0ee5842584224e26e379cd8c517421.tar.gz puppet-pmwiki-06c5be320b0ee5842584224e26e379cd8c517421.tar.bz2 |
also copies wiki.d
-rw-r--r-- | templates/pmwiki.sh.erb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/pmwiki.sh.erb b/templates/pmwiki.sh.erb index e22870b..7769dcd 100644 --- a/templates/pmwiki.sh.erb +++ b/templates/pmwiki.sh.erb @@ -55,7 +55,7 @@ function pmwiki_upgrade { # Copy files for file in .htaccess index.php farmconfig.php local config.php wiki.d; do - if [ -f "pmwiki-$old/$file" ]; then + if [ -e "pmwiki-$old/$file" ]; then cp -a pmwiki-$old/$file pmwiki-$new/ fi done @@ -80,7 +80,7 @@ function pmwiki_upgrade { # Main procedure if [ -z "$1" ]; then - echo "Usage: `basename $0` <deploy|update|upgrade> [arguments]" + echo "Usage: `basename $0` <deploy|upgrade> [arguments]" exit 1 elif [ "$1" == "deploy" ]; then shift |