From 9d251016a9d9fc7e5a00fb0ed3497ade942aefb3 Mon Sep 17 00:00:00 2001 From: 0xOzgur <29779769+0xOzgur@users.noreply.github.com> Date: Sat, 18 May 2024 18:24:37 +0300 Subject: [PATCH] update.sh added --- update.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 update.sh diff --git a/update.sh b/update.sh new file mode 100644 index 0000000..d5e875e --- /dev/null +++ b/update.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +# Stop the ceremonyclient service +service ceremonyclient stop + +# Switch to the ~/ceremonyclient directory +cd ~/ceremonyclient + +# Fetch updates from the remote repository +git fetch origin +git merge origin + +# Switch to the ~/ceremonyclient/node directory +cd ~/ceremonyclient/node + +# Clean and reinstall node +GOEXPERIMENT=arenas go clean -v -n -a ./... +rm /root/go/bin/node +GOEXPERIMENT=arenas go install ./... + +# Start the ceremonyclient service +service ceremonyclient start \ No newline at end of file