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"
|
echo "failed to untar go-proxy.tar.gz"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
rm go-proxy.tar.gz
|
||||||
mkdir -p $(dirname $APP_ROOT)
|
mkdir -p $(dirname $APP_ROOT)
|
||||||
mv "go-proxy-${VERSION}" $APP_ROOT
|
mv "go-proxy-${VERSION}" $APP_ROOT
|
||||||
cd $APP_ROOT
|
cd $APP_ROOT
|
||||||
|
@ -89,12 +90,12 @@ systemctl-failed() {
|
||||||
mkdir -p /etc/systemd/system
|
mkdir -p /etc/systemd/system
|
||||||
cat <<EOF > /etc/systemd/system/go-proxy.service
|
cat <<EOF > /etc/systemd/system/go-proxy.service
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=go-proxy
|
Description=go-proxy reverse proxy
|
||||||
After=network.target
|
After=network.target
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=/opt/go-proxy/bin/go-proxy
|
ExecStart=${APP_ROOT}/bin/go-proxy
|
||||||
WorkingDirectory=/opt/go-proxy
|
WorkingDirectory=${APP_ROOT}
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
|
|
Loading…
Add table
Reference in a new issue