From aefabff482b40c32533745b4d2cba574c77e51f6 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Fri, 6 Sep 2019 13:51:26 +0900 Subject: [PATCH] Fixed path error --- services/build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/build.sh b/services/build.sh index 431de289..5d336c4c 100755 --- a/services/build.sh +++ b/services/build.sh @@ -1,4 +1,5 @@ #!/bin/sh +ROOT=$PWD INSTALLPATH="/etc/systemd/system/" GOBIN="$(go env GOPATH)/bin" cd $(dirname $0) @@ -9,7 +10,7 @@ for service in *.service; do sudo cp "$service" "$INSTALLPATH/$service" && sudo sed -i "s|MAKEFILE_USER|$USER|g" "$INSTALLPATH/$service" && sudo sed -i "s|MAKEFILE_GOBIN|$GOBIN|g" "$INSTALLPATH/$service" && - sudo sed -i "s|MAKEFILE_PWD|$PWD|g" "$INSTALLPATH/$service" + sudo sed -i "s|MAKEFILE_PWD|$ROOT|g" "$INSTALLPATH/$service" done sudo systemctl daemon-reload &&