rhtyd commented on a change in pull request #2316: CLOUDSTACK-10137: Only link
log4j if not already present
URL: https://github.com/apache/cloudstack/pull/2316#discussion_r150183528
##########
File path: debian/cloudstack-management.postinst
##########
@@ -57,7 +57,9 @@ if [ "$1" = configure ]; then
chgrp cloud ${CONFDIR}/${DBPROPS}
chown -R cloud:cloud /var/log/cloudstack/management
- ln -s ${CONFDIR}/log4j-cloud.xml ${CONFDIR}/log4j.xml
+ if [ ! -e "$CONFDIR/log4j.xml" ]; then
+ ln -s ${CONFDIR}/log4j-cloud.xml ${CONFDIR}/log4j.xml
Review comment:
@marcaurele perhaps we can fix it as `ln -sf`?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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