Signed-off-by: Igal Koshevoy <i...@pragmaticraft.com> --- ext/packaging/debian/postinst | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ext/packaging/debian/postinst b/ext/packaging/debian/postinst index 0d78b08..40c2ef1 100644 --- a/ext/packaging/debian/postinst +++ b/ext/packaging/debian/postinst @@ -22,7 +22,7 @@ configure) mkdir /etc/puppet-dashboard fi - if [ -f /usr/share/puppet-dashboard/config/database.yml ]; then + if [ -f /usr/share/puppet-dashboard/config/database.yml ] && [ ! -e /etc/puppet-dashboard/database.yml ]; then mv_conffile "/usr/share/puppet-dashboard/config/database.yml" "/etc/puppet-dashboard/database.yml" fi @@ -30,7 +30,7 @@ configure) chmod -R o-rwx /etc/puppet-dashboard find /etc/puppet-dashboard -type f -exec chmod a-x {} \; - if [ ! -e /usr/share/puppet-dashboard/config/database.yml ]; then + if [ ! -h /usr/share/puppet-dashboard/config/database.yml ]; then ln -s ../../../../etc/puppet-dashboard/database.yml /usr/share/puppet-dashboard/config/database.yml fi -- 1.7.2.3 -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to puppet-...@googlegroups.com. To unsubscribe from this group, send email to puppet-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.