summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorGoran Nushkov2019-04-06 02:10:54 +0200
committerGoran Nushkov2019-04-06 02:10:54 +0200
commitde42428d92f09e46f03ca5fbf6acdb0026e5395c (patch)
tree85bc5dfcb8c43581281eda0d3ba17eefec88fa28 /PKGBUILD
parent1db431ccef3daa118b91c7fe91cb9132d45c1d59 (diff)
downloadaur-de42428d92f09e46f03ca5fbf6acdb0026e5395c.tar.gz
Fixed openresty location
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD6
1 files changed, 2 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index e2160c6bbb5c..6766312d8a75 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -28,10 +28,8 @@ package(){
install -D -m644 "/opt/openresty/pod/nginx/license_copyright.pod" "${pkgdir}/usr/share/licenses/${pkgname}/COPYRIGHT"
# Fix openresty location
- cd "usr/local/bin/"
- sed "s:usr/local:opt:" kong > kongs
- rm kong
- mv kongs kong
+ cd usr/local/bin/
+ sed -i "s:usr/local:opt:" kong
cd "${pkgdir}"
mkdir usr/bin 2> /dev/null; mv usr/local/bin/* usr/bin; rm -rf usr/local/bin