This is an automated email from the ASF dual-hosted git repository. andrijapanic pushed a commit to branch usage-post-install-make-up-your-mind in repository https://gitbox.apache.org/repos/asf/cloudstack.git
commit 86f7fcbb47eaec8c9f4af7f9a7f437e863b5cddf Author: Andrija Panic <[email protected]> AuthorDate: Tue Nov 19 16:44:38 2019 +0100 clean up redundant/colliding decision --- debian/cloudstack-usage.postinst | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/debian/cloudstack-usage.postinst b/debian/cloudstack-usage.postinst index 9529711..d73cb10 100755 --- a/debian/cloudstack-usage.postinst +++ b/debian/cloudstack-usage.postinst @@ -21,13 +21,8 @@ set -e case "$1" in configure) - # We copy the db.properties file from the management server to the usage server - # This used to be a symlink, but we don't do that anymore - if [ -f "/etc/cloud/management/db.properties" ]; then - cp -a /etc/cloud/management/db.properties /etc/cloudstack/usage/db.properties - fi - - # Replacing db.properties with management server db.properties + + # Linking usage server db.properties to management server db.properties if [ -f "/etc/cloudstack/management/db.properties" ]; then rm -rf /etc/cloudstack/usage/db.properties ln -s /etc/cloudstack/management/db.properties /etc/cloudstack/usage/db.properties
