We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f86ebc5 commit 10a14f1Copy full SHA for 10a14f1
1 file changed
entrypoint.sh
@@ -5,11 +5,6 @@ umask ${UMASK}
5
if [ "$1" = "version" ]; then
6
./openlist version
7
else
8
- # Define the target directory path for openlist service
9
- OPENLIST_DIR="/opt/service/start/openlist"
10
- if [ ! -d "$OPENLIST_DIR" ]; then
11
- cp -r /opt/service/stop/openlist "$OPENLIST_DIR" 2>/dev/null
12
- fi
13
# Define the target directory path for aria2 service
14
ARIA2_DIR="/opt/service/start/aria2"
15
@@ -19,12 +14,12 @@ else
19
mkdir -p "$ARIA2_DIR"
20
cp -r /opt/service/stop/aria2/* "$ARIA2_DIR" 2>/dev/null
21
16
fi
17
+ runsvdir /opt/service/start &
22
18
23
# If aria2 should NOT run and target directory exists, remove it
24
if [ -d "$ARIA2_DIR" ]; then
25
rm -rf "$ARIA2_DIR"
26
27
28
-
29
- exec runsvdir /opt/service/start
+ exec ./openlist server --no-prefix
30
0 commit comments