mirror of
https://github.com/OpenListTeam/OpenList.git
synced 2025-09-19 04:06:18 +08:00
14 lines
283 B
Bash
14 lines
283 B
Bash
#!/bin/sh
|
|
|
|
umask ${UMASK}
|
|
|
|
if [ "$1" = "version" ]; then
|
|
./openlist version
|
|
else
|
|
if [ "$RUN_ARIA2" = "true" ]; then
|
|
cp -a /opt/service/stop/aria2 /opt/service/start 2>/dev/null
|
|
fi
|
|
|
|
chown -R ${PUID}:${PGID} /opt
|
|
exec su-exec ${PUID}:${PGID} runsvdir /opt/service/start
|
|
fi |