home and path variables fix
This commit is contained in:
parent
ef4586d288
commit
d952905a81
@ -44,18 +44,18 @@ git checkout release
|
||||
ARCH=$(uname -m)
|
||||
|
||||
# Get the current user's home directory
|
||||
HOME=$(eval echo ~$USER)
|
||||
HOME=$(eval echo ~$HOME_DIR)
|
||||
|
||||
# Use the home directory in the path
|
||||
PATH="$HOME/ceremonyclient/node"
|
||||
NODE_PATH="$HOME/ceremonyclient/node"
|
||||
|
||||
# Step10.1:Determine the ExecStart line based on the architecture
|
||||
if [ "$ARCH" = "x86_64" ]; then
|
||||
EXEC_START="$PATH/node-1.4.18-linux-amd64"
|
||||
EXEC_START="$NODE_PATH/node-1.4.18-linux-amd64"
|
||||
elif [ "$ARCH" = "aarch64" ]; then
|
||||
EXEC_START="$PATH/node-1.4.18-linux-arm64"
|
||||
EXEC_START="$NODE_PATH/node-1.4.18-linux-arm64"
|
||||
elif [ "$ARCH" = "arm64" ]; then
|
||||
EXEC_START="$PATH/node-1.4.18-darwin-arm64"
|
||||
EXEC_START="$NODE_PATH/node-1.4.18-darwin-arm64"
|
||||
else
|
||||
echo "Unsupported architecture: $ARCH"
|
||||
exit 1
|
||||
|
||||
Loading…
Reference in New Issue
Block a user