File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -5,11 +5,6 @@ umask ${UMASK}
55if [ " $1 " = " version" ]; then
66 ./openlist version
77else
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
138 # Define the target directory path for aria2 service
149 ARIA2_DIR=" /opt/service/start/aria2"
1510
1914 mkdir -p " $ARIA2_DIR "
2015 cp -r /opt/service/stop/aria2/* " $ARIA2_DIR " 2> /dev/null
2116 fi
17+ runsvdir /opt/service/start &
2218 else
2319 # If aria2 should NOT run and target directory exists, remove it
2420 if [ -d " $ARIA2_DIR " ]; then
2521 rm -rf " $ARIA2_DIR "
2622 fi
2723 fi
28-
29- exec runsvdir /opt/service/start
24+ exec ./openlist server --no-prefix
3025fi
You can’t perform that action at this time.
0 commit comments