Commit 9647ca6a authored by TBK's avatar TBK Committed by Jakub Jirutka

non-free/unifi: fix symbolic link

parent 0bc9dae8
......@@ -65,9 +65,14 @@ package() {
ln -sf /var/lib/$pkgname/data $basedir/data
ln -sf /var/lib/$pkgname/work $basedir/work
# overwrite with local snappy
ln -sf /usr/share/java/snappy-java-1.1.2.6.jar \
"$basedir"/lib/snappy-java-1.1.2.6.jar
# overwrite with local snappy but
# first we got to figure out the version
local file=$(ls lib/ | grep snappy-java)
local name=${file%.*}
local version=${name##*-}
# the java-snappy pkg has a symlink so we use that
ln -sf /usr/share/java/snappy-java.jar \
"$basedir"/lib/snappy-java-$version.jar
# make sure datadir is writable by our user
chown -R $pkgname:$pkgname $datadir
......@@ -75,6 +80,7 @@ package() {
# tell search engines to do not index
echo -e "User-Agent:*\nDisallow:/" > "$webapps"/$pkgname/ROOT/robots.txt
}
sha512sums="63150282d9b7c907e0851bfcfa6779c8a5568b6aa5a8c7333dd5d1403ea8561f8175e9682f79c508da98812efc619257971943a1c3803dd1e72295b9de3340af unifi-5.7.23.zip
b19a7d684ef2ec7c4159417c21185ccd8ce498da25405b69014fdb32e346a0077f7edc5dfc994481d12936aa8dbf22e6baf29571fd0003aaad19609d24c549f4 unifi.initd
d339555a91de7488badbedf8a4c85cff878e7d0720a8cf6a8340f51f3666dcf4878b47a1fff4c9c2846d7af140d11e48e898f8c4dba1f81c1004b76a81f0821e unifi.confd
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment