diff options
Diffstat (limited to 'www/horde-base/files/pkg-install.in')
-rw-r--r-- | www/horde-base/files/pkg-install.in | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/www/horde-base/files/pkg-install.in b/www/horde-base/files/pkg-install.in index 28db88333734..a2dc1e225389 100644 --- a/www/horde-base/files/pkg-install.in +++ b/www/horde-base/files/pkg-install.in @@ -102,14 +102,11 @@ case $2 in fi if [ -z "${PACKAGE_BUILDING}" ]; then - # Don't reset the config to default (PR ports/88621) - - for cf in `ls %%HORDEDIR%%/config/*php`; do - if [ -f $cf.previous ]; then - mv $cf $cf.new - echo "---> $cf not installed ***" - echo "---> please copy from $cf.previous ***" - echo "---> or from $cf.new ***" + # Copy over sample config files unless they already exist + + for cf in `ls %%HORDEDIR%%/config/*.dist | sed -e 's/\.dist//g'`; do + if [ ! -f $cf ]; then + cp -p $cf.dist $cf fi done fi |