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:
25
25
provider : releases
26
26
api_key :
27
27
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
29
29
skip_cleanup : true
30
30
on :
31
31
tags : true
Original file line number Diff line number Diff line change 4
4
5
5
set -xe
6
6
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
9
9
command -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
11
11
do ! command -v $p && echo Command \` $p \` missing && false
12
12
done
13
13
@@ -56,7 +56,7 @@ cd musl
56
56
find ../../musl/* -exec patch -Np1 -i{} \;
57
57
cd -
58
58
59
- if [ $UNAME = Linux ]; then
59
+ if [ $UNAME = linux ]; then
60
60
# Gathering all the dependencies
61
61
# EPOLLEXCLUSIVE not available : Linux4.5 / glibc2.24
62
62
# reuseport is available : Linux3.9+
128
128
129
129
# NGINX
130
130
cd nginx
131
- [ $UNAME = OpenBSD ] || NGX_FIO=--with-file-aio
131
+ [ $UNAME = openbsd ] || NGX_FIO=--with-file-aio
132
132
auto/configure $LIBATOMIC $NGX_FIO \
133
133
--prefix=/opt/nginx \
134
134
--pid-path=/run/nginx.pid \
187
187
command -v ldd && ldd /opt/nginx/bin/nginx || :
188
188
# Avoid replacing user’s config file on extraction (but keep nginx.conf.default)
189
189
$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