diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2016-01-05 07:27:53 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2016-01-05 07:28:11 +0000 |
commit | 06a5431020a3cccc1d31c7a62b212baf3024c74f (patch) | |
tree | 86baf9025471d925035dc299f5e81c65098425d7 /community | |
parent | 261379528c0a7f626d04124c2cc6d6fd397be7f6 (diff) | |
download | aports-06a5431020a3cccc1d31c7a62b212baf3024c74f.tar.bz2 aports-06a5431020a3cccc1d31c7a62b212baf3024c74f.tar.xz |
community/racktables: pre-create secret.php needed during setup
Diffstat (limited to 'community')
-rw-r--r-- | community/racktables/APKBUILD | 6 |
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 } |