cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [cloudstack] DaanHoogland commented on a change in pull request #3695: debian: fix symlink issue post install/upgrade
Date Fri, 22 Nov 2019 18:39:04 GMT
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:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message