diff options
author | Nils Czernia | 2015-12-14 14:41:58 +0100 |
---|---|---|
committer | Nils Czernia | 2015-12-14 14:41:58 +0100 |
commit | 8b4c2721b1192ee21226abd901a0756de5ccd13a (patch) | |
tree | 792ee09852f5c9a5dd2f0d498adac1cdef5c2527 /librenms.install | |
download | aur-8b4c2721b1192ee21226abd901a0756de5ccd13a.tar.gz |
Inital commit. Still in development. DO NOT USE!
Diffstat (limited to 'librenms.install')
-rw-r--r-- | librenms.install | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/librenms.install b/librenms.install new file mode 100644 index 000000000000..5cef7fcd95e3 --- /dev/null +++ b/librenms.install @@ -0,0 +1,15 @@ +# Maintainer: Nils Czernia <nils[at]czserver[dot]de> + +_datadir=/usr/share/webapps/librenms +_etcdir=/etc/webapps/librenms + +post_install() { + useradd librenms -d /usr/share/webapps/librenms -M -r + usermod -a -G librenms http + chown -R librenms:librenms /usr/share/webapps/${pkgname} + chown -R librenms:librenms /etc/webapps/${pkgname} + chown http:http /var/logs/${pkgname} + + echo "You have to configure the database configuration" + echo "in ${_etcdir}/config.php" +} |