mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-20 20:52:33 +02:00
scripts fix
This commit is contained in:
parent
ce1e5da72e
commit
662190e09e
1 changed files with 4 additions and 3 deletions
|
@ -42,6 +42,7 @@ dl_source() {
|
|||
echo "failed to untar go-proxy.tar.gz"
|
||||
exit 1
|
||||
fi
|
||||
rm go-proxy.tar.gz
|
||||
mkdir -p $(dirname $APP_ROOT)
|
||||
mv "go-proxy-${VERSION}" $APP_ROOT
|
||||
cd $APP_ROOT
|
||||
|
@ -89,12 +90,12 @@ systemctl-failed() {
|
|||
mkdir -p /etc/systemd/system
|
||||
cat <<EOF > /etc/systemd/system/go-proxy.service
|
||||
[Unit]
|
||||
Description=go-proxy
|
||||
Description=go-proxy reverse proxy
|
||||
After=network.target
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/opt/go-proxy/bin/go-proxy
|
||||
WorkingDirectory=/opt/go-proxy
|
||||
ExecStart=${APP_ROOT}/bin/go-proxy
|
||||
WorkingDirectory=${APP_ROOT}
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
|
|
Loading…
Add table
Reference in a new issue