jenkins/scripts/copy_puppet_logs: copy apache logs only if exist
Copy Apache logs only if the directory exits. Otherwise, if Apache is not installed, the script will fail. Change-Id: I7f76a99e7cf2023bfdf6f59c98adf20da14d92bb
This commit is contained in:
parent
d8fbad629c
commit
704d558427
@ -112,7 +112,9 @@ elif is_fedora; then
|
||||
sudo cp /etc/httpd/conf.d/* $LOG_DIR/apache_config
|
||||
fi
|
||||
fi
|
||||
sudo cp -r ${apache_logs} $LOG_DIR/apache
|
||||
if [ -d ${apache_logs} ]; then
|
||||
sudo cp -r ${apache_logs} $LOG_DIR/apache
|
||||
fi
|
||||
|
||||
# package status
|
||||
if [ `command -v dpkg` ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user