aboutsummaryrefslogtreecommitdiffstats
path: root/community/racktables
diff options
context:
space:
mode:
Diffstat (limited to 'community/racktables')
-rw-r--r--community/racktables/APKBUILD6
1 files changed, 4 insertions, 2 deletions
diff --git a/community/racktables/APKBUILD b/community/racktables/APKBUILD
index 13f0b53ae0..2f9bfb62d7 100644
--- a/community/racktables/APKBUILD
+++ b/community/racktables/APKBUILD
@@ -3,7 +3,7 @@
pkgname=racktables
_realname=RackTables
pkgver=0.20.10
-pkgrel=1
+pkgrel=2
pkgdesc="Server room asset management"
url="http://racktables.org"
arch="noarch"
@@ -44,8 +44,10 @@ package() {
make DESTDIR="${pkgdir}" install
make DESTDIR="${pkgdir}" install-docs
mkdir -p "$pkgdir"/etc/racktables
- chown :www-data "$pkgdir"/etc/racktables
+ touch "$pkgdir"/etc/racktables/secret.php
+ chown -R :www-data "$pkgdir"/etc/racktables
chmod 770 "$pkgdir"/etc/racktables
+ chmod 660 "$pkgdir"/etc/racktables/secret.php
sed -i "s%<?php%<?php\n\n\$racktables_confdir = '/etc/racktables';%" \
"$pkgdir"/usr/share/webapps/RackTables/wwwroot/index.php
}