From f098ae0f9dc98c52a8d432ea8618f222ba4b0442 Mon Sep 17 00:00:00 2001 From: 0xOzgur <29779769+0xOzgur@users.noreply.github.com> Date: Sun, 26 May 2024 14:54:09 +0300 Subject: [PATCH 1/3] bugfix --- install/install_quilibrium_service.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install/install_quilibrium_service.sh b/install/install_quilibrium_service.sh index f601eab..f3e0fa2 100644 --- a/install/install_quilibrium_service.sh +++ b/install/install_quilibrium_service.sh @@ -44,10 +44,10 @@ git checkout release ARCH=$(uname -m) # Get the current user's home directory -HOME_DIR=$(eval echo ~$USER) +#HOME_DIR=$(eval echo ~$USER) # Use the home directory in the path -PATH="$HOME_DIR/ceremonyclient/node" +#PATH="$HOME_DIR/ceremonyclient/node" # Step10.1:Determine the ExecStart line based on the architecture if [ "$ARCH" = "x86_64" ]; then @@ -74,7 +74,7 @@ Type=simple Restart=always RestartSec=5s WorkingDirectory=/root/ceremonyclient/node -ExecStart=$EXEC_START +ExecStart=/root/ceremonyclient/node/$PATH [Install] WantedBy=multi-user.target From 889b300c07bff20ec537511908827afc24f8fc93 Mon Sep 17 00:00:00 2001 From: 0xOzgur <29779769+0xOzgur@users.noreply.github.com> Date: Sun, 26 May 2024 14:56:52 +0300 Subject: [PATCH 2/3] bugfix --- install/install_quilibrium_service.sh | 8 ++++---- update.sh | 16 ++++------------ 2 files changed, 8 insertions(+), 16 deletions(-) diff --git a/install/install_quilibrium_service.sh b/install/install_quilibrium_service.sh index f3e0fa2..37d9db8 100644 --- a/install/install_quilibrium_service.sh +++ b/install/install_quilibrium_service.sh @@ -51,11 +51,11 @@ ARCH=$(uname -m) # 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="/root/ceremonyclient/node/node-1.4.18-linux-amd64" elif [ "$ARCH" = "aarch64" ]; then - EXEC_START="$PATH/node-1.4.18-linux-arm64" + EXEC_START="/root/ceremonyclient/node/node-1.4.18-linux-arm64" elif [ "$ARCH" = "arm64" ]; then - EXEC_START="$PATH/node-1.4.18-darwin-arm64" + EXEC_START="/root/ceremonyclient/node/node-1.4.18-darwin-arm64" else echo "Unsupported architecture: $ARCH" exit 1 @@ -74,7 +74,7 @@ Type=simple Restart=always RestartSec=5s WorkingDirectory=/root/ceremonyclient/node -ExecStart=/root/ceremonyclient/node/$PATH +ExecStart=$EXEC_START [Install] WantedBy=multi-user.target diff --git a/update.sh b/update.sh index 73c6795..bdba073 100644 --- a/update.sh +++ b/update.sh @@ -18,19 +18,13 @@ git checkout release # Get the system architecture ARCH=$(uname -m) -# Get the current user's home directory -HOME_DIR=$(eval echo ~$USER) - -# Use the home directory in the path -PATH="$HOME_DIR/ceremonyclient/node" - -# Step10.1:Determine the ExecStart line based on the architecture +# Determine the ExecStart line based on the architecture if [ "$ARCH" = "x86_64" ]; then - EXEC_START="$PATH/node-1.4.18-linux-amd64" + EXEC_START="/root/ceremonyclient/node/node-1.4.18-linux-amd64" elif [ "$ARCH" = "aarch64" ]; then - EXEC_START="$PATH/node-1.4.18-linux-arm64" + EXEC_START="/root/ceremonyclient/node/node-1.4.18-linux-arm64" elif [ "$ARCH" = "arm64" ]; then - EXEC_START="$PATH/node-1.4.18-darwin-arm64" + EXEC_START="/root/ceremonyclient/node/node-1.4.18-darwin-arm64" else echo "Unsupported architecture: $ARCH" exit 1 @@ -39,8 +33,6 @@ fi # Step 3:Re-Create Ceremonyclient Service echo "⏳ Re-Creating Ceremonyclient Service" sleep 2 # Add a 2-second delay - -# Update the ExecStart line in the service file sudo sed -i "s|ExecStart=.*|ExecStart=$EXEC_START|" /lib/systemd/system/ceremonyclient.service # Step 4:Start the ceremonyclient service From 5adf25d7a1d75feeac91f809f45ed88135e8a143 Mon Sep 17 00:00:00 2001 From: 0xOzgur <29779769+0xOzgur@users.noreply.github.com> Date: Sun, 26 May 2024 15:00:22 +0300 Subject: [PATCH 3/3] bugfix --- update.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/update.sh b/update.sh index bdba073..b19b536 100644 --- a/update.sh +++ b/update.sh @@ -33,7 +33,21 @@ fi # Step 3:Re-Create Ceremonyclient Service echo "⏳ Re-Creating Ceremonyclient Service" sleep 2 # Add a 2-second delay -sudo sed -i "s|ExecStart=.*|ExecStart=$EXEC_START|" /lib/systemd/system/ceremonyclient.service +rm /lib/systemd/system/ceremonyclient.service +sudo tee /lib/systemd/system/ceremonyclient.service > /dev/null <