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

 ##########
 File path: debian/cloudstack-usage.postinst
 ##########
 @@ -40,7 +35,7 @@ case "$1" in
 
         # Replacing key with management server key
         if [ -f "/etc/cloudstack/management/key" ]; then
-            rm -rf /etc/cloudstack/usage/key
+            rm -f /etc/cloudstack/usage/key
             ln -s /etc/cloudstack/management/key /etc/cloudstack/usage/key
 
 Review comment:
   Yes. I'm not sure if the file being removed may not be a symlink, this 
approach should work as intended. 

----------------------------------------------------------------
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