Skip to content

Commit

Permalink
security/acme.sh: create the log file
Browse files Browse the repository at this point in the history
If the log file does not exist on pkg-install, create it with the
expected permissions

PR:		264789
  • Loading branch information
dlangille committed Jul 30, 2023
1 parent 6b907e1 commit beb96db
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions security/acme.sh/Makefile
@@ -1,5 +1,6 @@
PORTNAME= acme.sh
PORTVERSION= 3.0.6
PORTREVISION= 1
CATEGORIES= security

MAINTAINER= dvl@FreeBSD.org
Expand Down
11 changes: 11 additions & 0 deletions security/acme.sh/pkg-install
@@ -0,0 +1,11 @@
#!/bin/sh

case $2 in
POST-INSTALL)
# create the log file, if it does not exist
if [ !-f /var/log/acme.sh.log ]
then
/usr/bin/install -C -m 640 -o acme -g acme /dev/null /var/log/acme.sh.log
fi
;;
esac

0 comments on commit beb96db

Please sign in to comment.