guyuqi commented on code in PR #914:
URL: https://github.com/apache/bigtop/pull/914#discussion_r902116758
##########
bigtop-packages/src/rpm/ambari/SPECS/ambari.spec:
##########
@@ -391,7 +395,10 @@ if [ "$1" -eq 0 ]; then # Action is uninstall
if [ -d "/etc/ambari-agent/conf.save" ]; then
mv /etc/ambari-agent/conf.save /etc/ambari-agent/conf_$(date
'+%d_%m_%y_%H_%M').save
fi
- mv /etc/ambari-agent/conf /etc/ambari-agent/conf.save
+
+ if [ -d "/etc/ambari-agent/conf" ]; then
+ cp -r /etc/ambari-agent/conf /etc/ambari-agent/conf.save
Review Comment:
Updated, thanks.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]