This repository was archived by the owner on May 5, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ deploy:
2525 provider : releases
2626 api_key :
2727 secure : HhJjsCMB+fb6FSovotxE0vkfU1aYdgS1+HlB08TXb6GVCKQ0fMUlKp2tyFNZQ+BH3b4CIze3nM6FcD08uM5EUGN+RgpkxWaCNtROu10V2ZR/IzaJ6dhOmV05AQEvruW2Zwval/3ArvgK06RL162MPJxg7irrv1yeQLxgH4QOY+Y30TddYnn+4WaioGuft/P1HG94hX6xx+pRei/XZPv6ijLbmYClfQ66ugA5bnRDGlLR0BjMOj/pKDFgmRIiJHs5eNGdox9+Gpk86AyhaWJgxQA1nVmmhKBl9okTd8eZ50Z6h+XOb76znXDEsnHiTsYL/f6Y1FL1WU9OF43Q+DTXW7YT2dpJABiXu3xCuQoGSXOKE8yDgJQCz84iSOrQ3VoGbl0Ipedr3BhF57uMojGvUFISqVUnMDBZOGnFCReoNRRbs8Zv+ORz+ZGAU+YnGmIE2ToOcjV3VvBggMjKrm7S9OsUJeM7vuytPx8v91OLFWrbIvRn0ElIdIJ43e2tH3iosuX/i9BaVZ5g9hiFWZXFw9JSUDwJ1UObsD7AkzN/wuDRC5FWpN3SPiT/OhuDVEV6roNMlO/SK1c1FFZMJQHAxFi5uH7rEIsZmjG+Qn48uuSDEXegDCot8PlLjZzJwdYl/DjI82cI70+ORtPc4e0Z7GaDM8TPUBzv9s4FCxmzXzQ=
28- file : nginx .tar.gz
28+ file : linux .tar.gz
2929 skip_cleanup : true
3030 on :
3131 tags : true
Original file line number Diff line number Diff line change 44
55set -xe
66
7- UNAME=` uname -s`
8- [ $UNAME = Linux ] && SU=" sudo env PATH=$PATH " MAKE=make || SU=doas MAKE=gmake
7+ UNAME=$( uname -s | tr ' [:upper:] ' ' [:lower:] ' )
8+ [ $UNAME = linux ] && SU=" sudo env PATH=$PATH " MAKE=make || SU=doas MAKE=gmake
99command -v nproc && NPROC=` nproc` || NPROC=` sysctl -n hw.ncpu`
10- for p in tar gzip cmake patch $MAKE # uname nproc (coreutils)
10+ for p in tar gzip cmake patch $MAKE
1111do ! command -v $p && echo Command \` $p \` missing && false
1212done
1313
@@ -56,7 +56,7 @@ cd musl
5656find ../../musl/* -exec patch -Np1 -i{} \;
5757cd -
5858
59- if [ $UNAME = Linux ]; then
59+ if [ $UNAME = linux ]; then
6060 # Gathering all the dependencies
6161 # EPOLLEXCLUSIVE not available : Linux4.5 / glibc2.24
6262 # reuseport is available : Linux3.9+
128128
129129# NGINX
130130cd nginx
131- [ $UNAME = OpenBSD ] || NGX_FIO=--with-file-aio
131+ [ $UNAME = openbsd ] || NGX_FIO=--with-file-aio
132132auto/configure $LIBATOMIC $NGX_FIO \
133133 --prefix=/opt/nginx \
134134 --pid-path=/run/nginx.pid \
187187command -v ldd && ldd /opt/nginx/bin/nginx || :
188188# Avoid replacing user’s config file on extraction (but keep nginx.conf.default)
189189$SU rm /opt/nginx/conf/nginx.conf
190- tar czf $_root /nginx .tar.gz -C /opt nginx
190+ tar czf $_root /$UNAME .tar.gz -C /opt nginx
You can’t perform that action at this time.
0 commit comments