diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2021-07-16 00:13:15 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-07-17 09:50:24 +0700 |
commit | 7fe11fcfa47614a611bc5ac592fb5ae52bc69453 (patch) | |
tree | 6385989701a94d49f12ed77733148f85e8506527 | |
parent | 7c8ad5caee40ade1fcecdc454eb1f336466cca5a (diff) |
network/elemental-ircd: Fix logrotate script
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | network/elemental-ircd/elemental-ircd.SlackBuild | 6 | ||||
-rw-r--r-- | network/elemental-ircd/elemental-ircd.logrotate | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/network/elemental-ircd/elemental-ircd.SlackBuild b/network/elemental-ircd/elemental-ircd.SlackBuild index 9af0e8f1b72a9..909db97e3c379 100644 --- a/network/elemental-ircd/elemental-ircd.SlackBuild +++ b/network/elemental-ircd/elemental-ircd.SlackBuild @@ -33,6 +33,7 @@ TAG=${TAG:-_SBo} IRCD_UID=${IRCD_UID:-315} IRCD_GID=${IRCD_GID:-315} IRCD_UNAME=${IRCD_UNAME:-elemental-ircd} +IRCD_GNAME=${IRCD_GNAME:-elemental-ircd} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -126,7 +127,10 @@ sed -e "s/@USER@/$IRCD_UNAME/" $CWD/rc.$PRGNAM > $PKG/etc/rc.d/rc.$PRGNAM.new # Copy logrotate script into /etc/logrotate.d mkdir -p $PKG/etc/logrotate.d -cat $CWD/$PRGNAM.logrotate > $PKG/etc/logrotate.d/$PRGNAM.new +sed \ + -e "s,@IRCD_UNAME@,$IRCD_UNAME,g" \ + -e "s,@IRCD_GNAME@,$IRCD_GNAME,g" \ + $CWD/$PRGNAM.logrotate > $PKG/etc/logrotate.d/$PRGNAM.new # Copy slackware-specific example conf to /etc/elemental-ircd mkdir -p $PKG/etc/$PRGNAM diff --git a/network/elemental-ircd/elemental-ircd.logrotate b/network/elemental-ircd/elemental-ircd.logrotate index 16c989becc462..57145d5da6954 100644 --- a/network/elemental-ircd/elemental-ircd.logrotate +++ b/network/elemental-ircd/elemental-ircd.logrotate @@ -1,6 +1,7 @@ /var/log/elemental-ircd/* { daily rotate 7 + create 0644 @IRCD_UNAME@ @IRCD_GNAME@ copytruncate delaycompress compress |