blob: b09e867f968025bb5faf5a94286561848bb4abe6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/sh
# Created by: Mark Felder <feld@freebsd.org>
# $FreeBSD$
if [ "$2" = "POST-INSTALL" ]; then
# generate conf.php
/usr/bin/printf "<?php
/* This file was automatically created by the NfSen %%PORTVERSION%% install.pl script */
\$COMMSOCKET = "%%PREFIX%%/var/nfsen/run/nfsen.comm";
\$DEBUG=0;
?>" > %%WWWDIR%%/conf.php
# chown some files
/usr/sbin/chown -R www:www %%PREFIX%%/var/nfsen
fi
|