DaanHoogland commented on a change in pull request #3695: debian: fix symlink 
issue post install/upgrade
URL: https://github.com/apache/cloudstack/pull/3695#discussion_r349737315
 
 

 ##########
 File path: debian/cloudstack-usage.postinst
 ##########
 @@ -21,15 +21,10 @@ 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
+            rm -f /etc/cloudstack/usage/db.properties
 
 Review comment:
   this would work, but wouldn't ```ln -sf ...``` as well?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to