12 lines
289 B
Text
12 lines
289 B
Text
|
#!/usr/bin/env bash
|
||
|
|
||
|
RUN "sudo apt-get install -y logrotate"
|
||
|
|
||
|
COPY "${JOBFILE_DIR}/misc" "/tmp/misc"
|
||
|
RUN "sudo mv /tmp/misc /etc/logrotate.d/misc"
|
||
|
RUN "sudo chown root:root /etc/logrotate.d/misc"
|
||
|
|
||
|
# Fix logrotate issue
|
||
|
RUN "sudo chmod 0750 /var/log"
|
||
|
RUN "sudo systemctl restart logrotate"
|