This commit is contained in:
Tommy Verrall
2024-02-16 16:18:11 +01:00
parent 3010d5192f
commit 52c46f371e
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
default_location="/usr/bin/nym-gateway"
default_user="nym"
@@ -11,7 +11,7 @@ oldest_binary=$(ls -ltr $existing_binaries | head -n 1 | awk '{print $NF}')
if [ -n "$oldest_binary" ] && [ "$oldest_binary" != "$default_location" ]; then
echo "Existing binary found at $oldest_binary"
backup_path="${oldest_binary}.backup"
backup_path="${oldest_binary}.backup.$(date +%Y-%m-%dT%H:%M:%S%z)"
echo "Backing up the original binary to $backup_path"
sudo cp "$oldest_binary" "$backup_path"
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
default_location="/usr/bin/nym-mixnode"
default_user="nym"