From 23b2d7493bca843dbf4a5a9ad68b5de971850d94 Mon Sep 17 00:00:00 2001 From: 0xOzgur <29779769+0xOzgur@users.noreply.github.com> Date: Wed, 29 May 2024 21:10:39 +0300 Subject: [PATCH] updated --- update.sh | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/update.sh b/update.sh index 81c1266..fbc5809 100644 --- a/update.sh +++ b/update.sh @@ -12,32 +12,34 @@ cd ~/ceremonyclient git pull git checkout release -# Set the version number -VERSION="1.4.18" - -# Get the system architecture -ARCH=$(uname -m) - # Get the current user's home directory HOME=$(eval echo ~$HOME_DIR) # Use the home directory in the path NODE_PATH="$HOME/ceremonyclient/node" +EXEC_START="$NODE_PATH/release_autorun.sh" -# Step10.1:Determine the ExecStart line based on the architecture -if [ "$ARCH" = "x86_64" ]; then - EXEC_START="$NODE_PATH/node-$VERSION-linux-amd64" -elif [ "$ARCH" = "aarch64" ]; then - EXEC_START="$NODE_PATH/node-$VERSION-linux-arm64" -elif [ "$ARCH" = "arm64" ]; then - EXEC_START="$NODE_PATH/node-$VERSION-darwin-arm64" -else - echo "Unsupported architecture: $ARCH" - exit 1 -fi +# Step 3:Re-Create Ceremonyclient Service +echo "⏳ Re-Creating Ceremonyclient Service" +sleep 2 # Add a 2-second delay +rm /lib/systemd/system/ceremonyclient.service +sudo tee /lib/systemd/system/ceremonyclient.service > /dev/null <