mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-01-27 00:33:34 +00:00
Oh, this is much easier to work with. We can now detect the version of PostgreSQL installed and shouldn't need to update CI just because PostgreSQL has been updated in Debian Unstable.
17 lines
354 B
Bash
Executable File
17 lines
354 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Order: commandline, $CI_JOB_NAME, unknown
|
|
test="${1:-$CI_JOB_NAME}"
|
|
test="${test:-unknown}"
|
|
|
|
if [ -d /var/log/apache2 ]; then
|
|
mkdir -p apache2_log
|
|
cp -r /var/log/apache2 "apache2_log/$test"
|
|
xz apache2_log/"$test"/*
|
|
fi
|
|
|
|
if [ -d /var/log/davical ]; then
|
|
mkdir -p davical_log
|
|
cp -r /var/log/davical "davical_log/$test"
|
|
fi
|