network/squid: Fixup pid directory creation/usage

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
Robby Workman 2016-03-20 02:50:42 -05:00
parent 5428260e84
commit 074a79a5e6
2 changed files with 7 additions and 2 deletions

View File

@ -32,6 +32,10 @@ squid_start() {
fi
done
# Create piddir and set proper permissions
mkdir -p /var/run/squid
chown root:@SQUIDGROUP@ /var/run/squid
echo "Starting Squid: $SQUIDCMD -F"
$SQUIDCMD -F
}

View File

@ -110,9 +110,10 @@ cp -a \
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
chown root:root $PKG/usr/doc/$PRGNAM-$VERSION/*
mkdir -p $PKG/etc/{logrotate.d,rc.d}
cat $CWD/rc.squid > $PKG/etc/rc.d/rc.squid.new
mkdir -p $PKG/etc/rc.d
sed -e "s,@SQUIDGROUP@,$SQUIDGROUP," $CWD/rc.squid > $PKG/etc/rc.d/rc.squid.new
mkdir -p $PKG/etc/logrotate.d
sed -e "s,@USER@,$SQUIDUSER," -e "s,@GROUP@,$SQUIDGROUP," $CWD/squid.logrotate \
> $PKG/etc/logrotate.d/squid.new