Add log rotation test with absolute file path

Add a test to the logfileconfig system test to test log file rotation
when using absolute file paths.
This commit is contained in:
Matthijs Mekking
2023-04-06 09:24:43 +02:00
parent 9fb9670ebc
commit d9b1df3b5d
3 changed files with 85 additions and 2 deletions

View File

@@ -702,9 +702,12 @@ get_named_xfer_stats() {
# copy_setports infile outfile
#
copy_setports() {
sed -e "s/@PORT@/${PORT}/g" \
dir=$(echo "$TMPDIR" | sed 's/\//\\\//g')
sed -e "s/@TMPDIR@/${dir}/g" \
-e "s/@PORT@/${PORT}/g" \
-e "s/@TLSPORT@/${TLSPORT}/g" \
-e "s/@HTTPPORT@/${HTTPPORT}/g" \
-e "s/@HTTPPORT@/${HTTPPORT}/g" \
-e "s/@HTTPSPORT@/${HTTPSPORT}/g" \
-e "s/@EXTRAPORT1@/${EXTRAPORT1}/g" \
-e "s/@EXTRAPORT2@/${EXTRAPORT2}/g" \