11 lines
289 B
Bash
Executable file
11 lines
289 B
Bash
Executable file
#!/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"
|