File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,14 @@ ARG DOWNLAOD_URL="https://github.com/Jrohy/trojan/releases/download/"
1010
1111ARG SERVICE_URL="https://raw.githubusercontent.com/Jrohy/trojan/master/asset/trojan-web.service"
1212
13+ ARG SYSTEMCTL_URL="https://raw.githubusercontent.com/gdraheim/docker-systemctl-replacement/master/files/docker/systemctl.py"
14+
1315RUN yum install socat bash-completion crontabs iptables openssl unzip -y && \
1416 LATEST_VERSION=`curl -H 'Cache-Control: no-cache' -s "$VERSION_CHECK" | grep 'tag_name' | cut -d\" -f4` && \
1517 [[ $TARGETARCH =~ "arm64" ]] && ARCH="arm64" || ARCH="amd64" && \
1618 curl -fL "$DOWNLAOD_URL/$LATEST_VERSION/trojan-linux-$ARCH" -o /usr/local/bin/trojan && \
1719 curl -L $SERVICE_URL -o /etc/systemd/system/trojan-web.service && \
18- chmod +x /usr/local/bin/trojan && \
20+ curl -L $SYSTEMCTL_URL -o /usr/bin/systemctl && \
21+ chmod +x /usr/local/bin/trojan /usr/bin/systemctl && \
1922 echo "source <(trojan completion bash)" >> ~/.bashrc && \
2023 yum clean all
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ After=network.target network-online.target nss-lookup.target mysql.service maria
77Type =simple
88StandardError =journal
99ExecStart =/usr/local/bin/trojan web
10- ExecReload =/bin/kill -HUP \ $MAINPID
10+ ExecReload =/bin/kill -HUP $MAINPID
1111Restart =on-failure
1212RestartSec =3s
1313
You can’t perform that action at this time.
0 commit comments