Merge branch 'v1.4.18' into development

This commit is contained in:
0xOzgur 2024-05-26 17:01:43 +03:00 committed by GitHub
commit 04c635d88e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 2 deletions

View File

@ -55,6 +55,7 @@ VERSION="1.4.18"
ARCH=$(uname -m)
# Get the current user's home directory
HOME=$(eval echo ~$HOME_DIR)
# Use the home directory in the path

View File

@ -43,9 +43,21 @@ 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 <<EOF
[Unit]
Description=Ceremony Client Go App Service
# Update the ExecStart line in the service file
sudo sed -i "s|ExecStart=.*|ExecStart=$EXEC_START|" /lib/systemd/system/ceremonyclient.service
[Service]
Type=simple
Restart=always
RestartSec=5s
WorkingDirectory=/root/ceremonyclient/node
ExecStart=$EXEC_START
[Install]
WantedBy=multi-user.target
EOF
# Step 4:Start the ceremonyclient service
echo "✅ Starting Ceremonyclient Service"