From 66a54aeab3843791d22c8f490dfebc6574baf214 Mon Sep 17 00:00:00 2001 From: Tommy Verrall Date: Mon, 19 Feb 2024 14:51:23 +0100 Subject: [PATCH] small formatting --- gateway/debian/postinst | 15 ++++++++------- mixnode/debian/postinst | 12 +++++++----- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/gateway/debian/postinst b/gateway/debian/postinst index e23083e794..a02816a596 100755 --- a/gateway/debian/postinst +++ b/gateway/debian/postinst @@ -7,19 +7,19 @@ default_group="nym" if [ -f "/tmp/nym_gateway_preinst_marker" ]; then backup_path=$(cat /tmp/nym_gateway_preinst_marker) echo "Upgrade detected. Previous version backed up at $backup_path" - + existing_location=$(dirname "$backup_path" | sed 's/\.backup\..*//') echo "Existing location: ${existing_location}" - + if [ "$existing_location" != "$default_location" ]; then echo "Custom installation location detected: $existing_location" - + mv "$default_location" "$existing_location/nym-gateway" - + original_user=$(stat -c "%U" "$backup_path") original_group=$(stat -c "%G" "$backup_path") original_perms=$(stat -c "%a" "$backup_path") - + chown "$original_user:$original_group" "$existing_location/nym-gateway" chmod "$original_perms" "$existing_location/nym-gateway" fi @@ -35,7 +35,7 @@ else echo "Installation complete. Please configure and start the nym-gateway process manually." echo "Refer to https://nymtech.net/operators/nodes/gateway-setup.html" echo "Example for setting up the nym-gateway service:" - + echo cat <