aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2010-02-16 19:08:55 -0200
committerdrebs <drebs@riseup.net>2010-02-16 19:08:55 -0200
commit06c5be320b0ee5842584224e26e379cd8c517421 (patch)
tree3080e6f978c05f704749e0b54ac33f35d05a9da7
parent0c10b6450c024c1a765eb9c882c359506b396454 (diff)
downloadpuppet-pmwiki-06c5be320b0ee5842584224e26e379cd8c517421.tar.gz
puppet-pmwiki-06c5be320b0ee5842584224e26e379cd8c517421.tar.bz2
also copies wiki.d
-rw-r--r--templates/pmwiki.sh.erb4
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