diff options
author | nachoparker <nacho@ownyourbits.com> | 2018-10-12 17:57:56 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2018-10-12 18:32:00 +0300 |
commit | 51918ff03ad6f1e2465f16bbddd1a001ffaf7d5f (patch) | |
tree | 6b25b8b20822e796acc7a6d34453c731cdc384b8 | |
parent | a9b15421aa8ac5ffb26b7596ad93ee03b07c85a0 (diff) |
update: docker container doesnt have ufw
-rwxr-xr-x | update.sh | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -288,10 +288,10 @@ EOF [[ "${URL: -1}" != "/" ]] && ncc config:system:set overwrite.cli.url --value="${URL}/" # Implement logrotate restrictions - grep -q "^\& stop" /etc/rsyslog.d/20-ufw.conf || echo "& stop" >> /etc/rsyslog.d/20-ufw.conf - grep -q maxsize /etc/logrotate.d/ufw || sed -i /weekly/amaxsize2M /etc/logrotate.d/ufw + [[ -f /etc/rsyslog.d/20-ufw.conf ]] && { grep -q "^\& stop" /etc/rsyslog.d/20-ufw.conf || echo "& stop" >> /etc/rsyslog.d/20-ufw.conf; } + [[ -f /etc/logrotate.d/ufw ]] && { grep -q maxsize /etc/logrotate.d/ufw || sed -i /weekly/amaxsize2M /etc/logrotate.d/ufw; } grep -q maxsize /etc/logrotate.d/apache2 || sed -i /weekly/amaxsize2M /etc/logrotate.d/apache2 - service rsyslog restart + service rsyslog restart &>/dev/null cat >> /etc/logrotate.d/ncp <<'EOF' /var/log/ncp.log { |