From 52c46f371eb8d428d6d50929cceb88e7fc0fa700 Mon Sep 17 00:00:00 2001 From: Tommy Verrall Date: Fri, 16 Feb 2024 16:18:11 +0100 Subject: [PATCH] shell --- gateway/debian/postinst | 4 ++-- mixnode/debian/postinst | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gateway/debian/postinst b/gateway/debian/postinst index 4695111f9e..b9a06fb46a 100644 --- a/gateway/debian/postinst +++ b/gateway/debian/postinst @@ -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" diff --git a/mixnode/debian/postinst b/mixnode/debian/postinst index edc500b80c..76206e93dc 100644 --- a/mixnode/debian/postinst +++ b/mixnode/debian/postinst @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh default_location="/usr/bin/nym-mixnode" default_user="nym"