blob: 7ea39ab396b8665c8b2e1f87968ca39a4d20bf63 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# Maintainer: Nils Czernia <nils[at]czserver[dot]de>
post_install() {
echo "Adding new User"
useradd librenms -d /usr/share/webapps/librenms -M -r
usermod -a -G librenms http
echo "Changing file permissions"
chown -R librenms:librenms /usr/share/webapps/${pkgname}
chown -R librenms:librenms /etc/webapps/${pkgname}
chown http:http /var/log/${pkgname}
echo "Install new pear modules"
pear install Net_IPv4
pear install Net_IPv6
echo "You have to configure the database configuration"
echo "in ${_etcdir}/config.php"
}
|