summaryrefslogtreecommitdiff
path: root/automated/linux/apache-apache-bench/apache-bench.sh
diff options
context:
space:
mode:
Diffstat (limited to 'automated/linux/apache-apache-bench/apache-bench.sh')
-rwxr-xr-xautomated/linux/apache-apache-bench/apache-bench.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/automated/linux/apache-apache-bench/apache-bench.sh b/automated/linux/apache-apache-bench/apache-bench.sh
index 2395efc..22d66a1 100755
--- a/automated/linux/apache-apache-bench/apache-bench.sh
+++ b/automated/linux/apache-apache-bench/apache-bench.sh
@@ -23,8 +23,7 @@ while getopts "s:n:c:" o; do
done
! check_root && error_msg "This script must be run as root"
-[ -d "${OUTPUT}" ] && mv "${OUTPUT}" "${OUTPUT}_$(date +%Y%m%d%H%M%S)"
-mkdir -p "${OUTPUT}"
+create_out_dir "${OUTPUT}"
# Install apache and use systemctl for service management. Tested on Ubuntu 16.04,
# Debian 8, CentOS 7 and Fedora 24. systemctl should available on newer releases