| 1 |
#!/bin/bash |
| 2 |
|
| 3 |
printf "@@if not defined SYSTEMD_JOURNAL\\n" |
| 4 |
if [[ -d "/var/log/journal" ]]; then |
| 5 |
printf "@@define SYSTEMD_JOURNAL var/log/journal\\n" |
| 6 |
else |
| 7 |
printf "@@define SYSTEMD_JOURNAL @@{RUN}/log/journal\\n" |
| 8 |
printf "/@@{RUN}/log$ d RecreatedDir\n" |
| 9 |
fi |
| 10 |
printf "@@endif\n" |