Skip to content

Commit b572217

Browse files
committed
Rename project to Oryx. v5.14.15
1 parent c6fe0f3 commit b572217

File tree

25 files changed

+32
-34
lines changed

25 files changed

+32
-34
lines changed

.github/workflows/pullrequest.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ jobs:
271271
- name: Install package
272272
run: |
273273
sudo bash build/oryx/scripts/setup-ubuntu/install.sh --verbose
274-
echo "" && echo "/usr/local/srs-stack/" && du -sh /usr/local/srs-stack/*
274+
echo "" && echo "/usr/local/oryx/" && du -sh /usr/local/oryx/*
275275
echo "" && ls -lha /data /data/config
276276
- name: Check and Test service
277277
run: |
@@ -360,7 +360,7 @@ jobs:
360360
- name: Install package
361361
run: |
362362
sudo bash build/oryx/scripts/setup-ubuntu/install.sh --verbose
363-
echo "" && echo "/usr/local/srs-stack/" && du -sh /usr/local/srs-stack/*
363+
echo "" && echo "/usr/local/oryx/" && du -sh /usr/local/oryx/*
364364
echo "" && ls -lha /data /data/config
365365
- name: Check and Test service
366366
run: |

.gitignore

-2
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,8 @@ t.md
129129
/build
130130
/*.tar
131131
/*.gz
132-
/srs-stack2
133132
/oryx
134133
/test/oryx.test
135-
/test/srs-stack.test
136134
__pycache__
137135
*.flv
138136
*.mp4

DEVELOPER.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ docker stop redis 2>/dev/null || echo ok && docker rm -f redis srs 2>/dev/null &
8888
docker run --rm -it --name oryx -v $HOME/data:/data \
8989
-p 2022:2022 -p 2443:2443 -p 1935:1935 -p 8000:8000/udp -p 10080:10080/udp \
9090
-p 80:2022 -p 443:2443 -e CANDIDATE=$(ifconfig en0 |grep 'inet ' |awk '{print $2}') \
91-
-v $(pwd)/platform/platform:/usr/local/srs-stack/platform/platform \
91+
-v $(pwd)/platform/platform:/usr/local/oryx/platform/platform \
9292
platform
9393
```
9494

Dockerfile

+5-5
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ ENV DEBIAN_FRONTEND=noninteractive
4444
RUN apt-get update -y && apt-get install -y upx
4545

4646
RUN echo "Before UPX for $TARGETARCH" && \
47-
ls -lh /usr/local/srs/objs/srs /usr/local/srs-stack/platform/platform && \
47+
ls -lh /usr/local/srs/objs/srs /usr/local/oryx/platform/platform && \
4848
upx --best --lzma /usr/local/srs/objs/srs && \
49-
upx --best --lzma /usr/local/srs-stack/platform/platform && \
49+
upx --best --lzma /usr/local/oryx/platform/platform && \
5050
echo "After UPX for $TARGETARCH" && \
51-
ls -lh /usr/local/srs/objs/srs /usr/local/srs-stack/platform/platform
51+
ls -lh /usr/local/srs/objs/srs /usr/local/oryx/platform/platform
5252

5353
# http://releases.ubuntu.com/focal/
5454
#FROM ${ARCH}ubuntu:focal AS dist
@@ -58,12 +58,12 @@ FROM ${ARCH}ossrs/oryx:focal-1 AS dist
5858
EXPOSE 2022 2443 1935 8080 5060 9000 8000/udp 10080/udp
5959

6060
# Copy files from build.
61-
COPY --from=build /usr/local/srs-stack /usr/local/srs-stack
61+
COPY --from=build /usr/local/oryx /usr/local/oryx
6262
COPY --from=build /usr/local/srs /usr/local/srs
6363

6464
# Prepare data directory.
6565
RUN mkdir -p /data && \
66-
cd /usr/local/srs-stack/platform/containers && \
66+
cd /usr/local/oryx/platform/containers && \
6767
rm -rf data && ln -sf /data .
6868

6969
CMD ["./bootstrap"]

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.PHONY: default build build-no-ui install run uninstall upgrade test npm help clean
22

3-
PREFIX ?= /usr/local/srs-stack
3+
PREFIX ?= /usr/local/oryx
44
__REAL_INSTALL = $(DESTDIR)$(PREFIX)
55

66
default: build
@@ -42,7 +42,7 @@ else
4242
rm -rf $(__REAL_INSTALL)/platform/containers/objs/*
4343
rm -rf $(__REAL_INSTALL)/platform/containers/data/*
4444
cp -rf usr $(__REAL_INSTALL)/usr
45-
sed -i "s|/usr/local/srs-stack|$(PREFIX)|g" $(__REAL_INSTALL)/usr/lib/systemd/system/oryx.service
45+
sed -i "s|/usr/local/oryx|$(PREFIX)|g" $(__REAL_INSTALL)/usr/lib/systemd/system/oryx.service
4646
endif
4747

4848
uninstall:

focal/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ COPY --from=upx /usr/local/bin/lego \
5151
ENV PORT=":2024" NODE_ENV=production CLOUD=DOCKER PLATFORM_DOCKER=on
5252

5353
# Setup the work directory to platform.
54-
WORKDIR /usr/local/srs-stack/platform
54+
WORKDIR /usr/local/oryx/platform

platform/auto/start_srs

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ if [[ ! -s ${WORK_DIR}/containers/data/config/srs.vhost.conf ]]; then
3737
echo '# OK' > ${WORK_DIR}/containers/data/config/srs.vhost.conf
3838
fi
3939

40-
# Current directory should be /usr/local/srs-stack/platform
40+
# Current directory should be /usr/local/oryx/platform
4141
# We don't check the exit value, see https://github.com/ossrs/srs/issues/3757
4242
/usr/local/srs/objs/srs $SRS_PARAMS
4343
if [[ $? -ne 0 ]]; then echo "Warning: SRS start with none zero, but might be ok, see #3757."; fi

platform/utils.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func (v Versions) String() string {
4848
// TODO: FIXME: Should be merged to mgmt.
4949
type Config struct {
5050
IsDarwin bool
51-
// Current working directory, at xxx/oryx/platform or xxx/srs-stack/platform.
51+
// Current working directory, at xxx/oryx/platform.
5252
Pwd string
5353

5454
Cloud string

releases/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ RUN make
1010
#FROM ${ARCH}ubuntu:focal AS dist
1111
FROM ${ARCH}ubuntu:focal AS dist
1212

13-
COPY --from=build /g/releases/releases /usr/local/srs-stack/releases/releases
13+
COPY --from=build /g/releases/releases /usr/local/oryx/releases/releases
1414

1515
ENV PORT=":9000"
16-
WORKDIR /usr/local/srs-stack/releases
16+
WORKDIR /usr/local/oryx/releases
1717
CMD ["./releases"]

scripts/setup-aapanel/do_install.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
44
export PATH
55

66
install_path=/www/server/panel/plugin/oryx
7-
SRS_HOME=/usr/local/srs-stack
7+
SRS_HOME=/usr/local/oryx
88
DATA_HOME=/data
99

1010
# Update sysctl.conf and add if not exists. For example:
@@ -84,7 +84,7 @@ Uninstall() {
8484
fi
8585
echo "Remove oryx.service ok"
8686

87-
INSTALL_HOME=/usr/local/srs-stack
87+
INSTALL_HOME=/usr/local/oryx
8888
rm -rf $INSTALL_HOME
8989
echo "Remove install $INSTALL_HOME ok"
9090

scripts/setup-aapanel/do_setup.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ NGINX_PID=
1111
WWW_HOME=
1212
SITE_NAME=
1313
install_path=/www/server/panel/plugin/oryx
14-
SRS_HOME=/usr/local/srs-stack
14+
SRS_HOME=/usr/local/oryx
1515
DATA_HOME=/data
1616

1717
HELP=no

scripts/setup-aapanel/init.d.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# Description: https://github.com/ossrs/oryx
1111
### END INIT INFO
1212

13-
SRS_HOME=/usr/local/srs-stack
13+
SRS_HOME=/usr/local/oryx
1414

1515
start() {
1616
systemctl start oryx.service

scripts/setup-aapanel/oryx_main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class oryx_main:
2323
# public.get_vhost_path() is /www/server/panel/vhost
2424
__plugin_path = "{}/panel/plugin/oryx".format(public.get_setup_path())
2525
__srs_service = "/usr/lib/systemd/system/oryx.service"
26-
__srs_home = '/usr/local/srs-stack'
26+
__srs_home = '/usr/local/oryx'
2727
__r0_file = '/tmp/oryx_install.r0'
2828
__firewall = '/tmp/oryx_install.fw'
2929
__log_file = '/tmp/oryx_install.log'

scripts/setup-bt/do_install.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
44
export PATH
55

66
install_path=/www/server/panel/plugin/oryx
7-
SRS_HOME=/usr/local/srs-stack
7+
SRS_HOME=/usr/local/oryx
88
DATA_HOME=/data
99

1010
# Update sysctl.conf and add if not exists. For example:
@@ -84,7 +84,7 @@ Uninstall() {
8484
fi
8585
echo "Remove oryx.service ok"
8686

87-
INSTALL_HOME=/usr/local/srs-stack
87+
INSTALL_HOME=/usr/local/oryx
8888
rm -rf $INSTALL_HOME
8989
echo "Remove install $INSTALL_HOME ok"
9090

scripts/setup-bt/do_setup.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ NGINX_PID=
1111
WWW_HOME=
1212
SITE_NAME=
1313
install_path=/www/server/panel/plugin/oryx
14-
SRS_HOME=/usr/local/srs-stack
14+
SRS_HOME=/usr/local/oryx
1515
DATA_HOME=/data
1616

1717
HELP=no

scripts/setup-bt/init.d.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# Description: https://github.com/ossrs/oryx
1111
### END INIT INFO
1212

13-
SRS_HOME=/usr/local/srs-stack
13+
SRS_HOME=/usr/local/oryx
1414

1515
start() {
1616
systemctl start oryx.service

scripts/setup-bt/oryx_main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class oryx_main:
2323
# public.get_vhost_path() is /www/server/panel/vhost
2424
__plugin_path = "{}/panel/plugin/oryx".format(public.get_setup_path())
2525
__srs_service = "/usr/lib/systemd/system/oryx.service"
26-
__srs_home = '/usr/local/srs-stack'
26+
__srs_home = '/usr/local/oryx'
2727
__r0_file = '/tmp/oryx_install.r0'
2828
__firewall = '/tmp/oryx_install.fw'
2929
__log_file = '/tmp/oryx_install.log'

scripts/setup-droplet/scripts/01-srs.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# The main directory.
4-
SRS_HOME=/usr/local/srs-stack
4+
SRS_HOME=/usr/local/oryx
55
DATA_HOME=/data
66
IMAGE_URL=docker.io/ossrs/oryx:v${application_version}
77
echo "SRS_HOME=$SRS_HOME, DATA_HOME=$DATA_HOME, IMAGE_URL=$IMAGE_URL"

scripts/setup-lighthouse/setup_lighthouse.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ echo "Run setup at $WORK_DIR from $0"
2626
cd $WORK_DIR
2727

2828
# The main directory.
29-
SRS_HOME=/usr/local/srs-stack
29+
SRS_HOME=/usr/local/oryx
3030
DATA_HOME=/data
3131
IMAGE_URL=registry.cn-hangzhou.aliyuncs.com/ossrs/oryx:5
3232
SOURCE=$WORK_DIR

scripts/setup-ubuntu/init.d.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# Description: https://github.com/ossrs/oryx
1111
### END INIT INFO
1212

13-
SRS_HOME=/usr/local/srs-stack
13+
SRS_HOME=/usr/local/oryx
1414

1515
start() {
1616
systemctl start oryx.service

scripts/setup-ubuntu/install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ echo "BASH_SOURCE=${BASH_SOURCE}, REALPATH=${REALPATH}, SCRIPT_DIR=${SCRIPT_DIR}
88
cd ${WORK_DIR}
99

1010
DATA_HOME=/data
11-
SRS_HOME=/usr/local/srs-stack
11+
SRS_HOME=/usr/local/oryx
1212

1313
HELP=no
1414
VERBOSE=no

scripts/setup-ubuntu/uninstall.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if [[ -f /usr/lib/systemd/system/oryx.service ]]; then
2424
echo "Remove oryx.service ok"
2525
fi
2626

27-
INSTALL_HOME=/usr/local/srs-stack
27+
INSTALL_HOME=/usr/local/oryx
2828
rm -rf $INSTALL_HOME
2929
echo "Remove install $INSTALL_HOME ok"
3030

ui/src/pages/Contact.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
//
66
import React from "react";
77
import {Container, Carousel} from "react-bootstrap";
8-
import srsStack from "../resources/srs-stack-1296x648.png";
8+
import srsStack from "../resources/oryx-1296x648.png";
99
import srsVideo from "../resources/srs-xingqiu-1296x648.png";
1010
import {useSrsLanguage} from "../components/LanguageSwitch";
1111

usr/lib/systemd/system/oryx.service

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Wants=docker.service
66
[Service]
77
Type=simple
88
Restart=always
9-
ExecStart=/usr/local/srs-stack/mgmt/bootstrap
9+
ExecStart=/usr/local/oryx/mgmt/bootstrap
1010
KillSignal=SIGTERM
1111
TimeoutStopSec=30
1212
SendSIGKILL=yes

0 commit comments

Comments
 (0)