From e5e3772eac3a646d2a0dec0cc7437ee9e364a26b Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 18 Jun 2021 08:22:45 +0200 Subject: import cron.hourly script from vyatta-cfg-system --- debian/vyos-1x.install | 1 + src/etc/cron.hourly/vyos-logrotate-hourly | 4 ++++ 2 files changed, 5 insertions(+) create mode 100755 src/etc/cron.hourly/vyos-logrotate-hourly diff --git a/debian/vyos-1x.install b/debian/vyos-1x.install index 0c6c226ee..7d12f3bc1 100644 --- a/debian/vyos-1x.install +++ b/debian/vyos-1x.install @@ -1,3 +1,4 @@ +etc/cron.hourly etc/dhcp etc/ipsec.d etc/netplug diff --git a/src/etc/cron.hourly/vyos-logrotate-hourly b/src/etc/cron.hourly/vyos-logrotate-hourly new file mode 100755 index 000000000..f4f56a9c2 --- /dev/null +++ b/src/etc/cron.hourly/vyos-logrotate-hourly @@ -0,0 +1,4 @@ +#!/bin/sh + +test -x /usr/sbin/logrotate || exit 0 +/usr/sbin/logrotate /etc/logrotate.conf -- cgit v1.2.3