From a6763b8f4827efc83ab01f891ce14b5f29b63cfc Mon Sep 17 00:00:00 2001 From: 0xOzgur <29779769+0xOzgur@users.noreply.github.com> Date: Sun, 19 May 2024 14:37:41 +0300 Subject: [PATCH] Install script from binary added --- ceremonyclient.service | 12 ++++++++++++ install_binary.sh | 27 ++++++++++++++++++++------- install_quilibrium_service.sh | 2 +- 3 files changed, 33 insertions(+), 8 deletions(-) create mode 100644 ceremonyclient.service diff --git a/ceremonyclient.service b/ceremonyclient.service new file mode 100644 index 0000000..dac99af --- /dev/null +++ b/ceremonyclient.service @@ -0,0 +1,12 @@ +[Unit] +Description=Ceremony Client Go App Service + +[Service] +Type=simple +Restart=always +RestartSec=5s +WorkingDirectory=/root/ceremonyclient/node +ExecStart=/root/ceremonyclient/node/node + +[Install] +WantedBy=multi-user.target \ No newline at end of file diff --git a/install_binary.sh b/install_binary.sh index 85fe78e..a1e9d4c 100644 --- a/install_binary.sh +++ b/install_binary.sh @@ -1,5 +1,13 @@ #!/bin/bash + +# Step 0: Welcome +echo "This script is prepared by 0xOzgur.eth" +echo "Enjoy and sit back while you are building your Quilibrium Node!" +echo "Processing..." +sleep 10 # Add a 10-second delay + + # Download Ceremonyclient echo "Downloading Ceremonyclient" sleep 2 # Add a 2-second delay @@ -21,7 +29,7 @@ chmod +x node # Create Ceremonyclient Service echo "Creating Ceremonyclient Service" -sleep 1 # Add a 1-second delay +sleep 2 # Add a 2-second delay sudo tee /lib/systemd/system/ceremonyclient.service > /dev/null <