From ec6b4cd4645e2a97d010285472ece599eba2b4b3 Mon Sep 17 00:00:00 2001 From: 0xOzgur <29779769+0xOzgur@users.noreply.github.com> Date: Sun, 26 May 2024 16:50:01 +0300 Subject: [PATCH] check if service file exist --- install/install_quilibrium_service.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install/install_quilibrium_service.sh b/install/install_quilibrium_service.sh index 8aa0bb4..c0d90bb 100644 --- a/install/install_quilibrium_service.sh +++ b/install/install_quilibrium_service.sh @@ -75,7 +75,11 @@ fi # Step10.2:Create Ceremonyclient Service echo "⏳ Re-Creating Ceremonyclient Service" sleep 2 # Add a 2-second delay -sudo rm /lib/systemd/system/ceremonyclient.service +# Check if the ceremonyclient.service file exists +if [ -f /lib/systemd/system/ceremonyclient.service ]; then + # If it exists, remove it + sudo rm /lib/systemd/system/ceremonyclient.service +fi sudo tee /lib/systemd/system/ceremonyclient.service > /dev/null <