From f8cb868a2a1d2e42dd4eb3384725756d50d2e927 Mon Sep 17 00:00:00 2001 From: Nicolas Arenas Date: Tue, 1 Apr 2025 14:56:30 +0200 Subject: [PATCH] Fix version in ogrepository --- debian/ogrepository.postinst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debian/ogrepository.postinst b/debian/ogrepository.postinst index 32e28f8..5baef40 100755 --- a/debian/ogrepository.postinst +++ b/debian/ogrepository.postinst @@ -74,13 +74,14 @@ done elif [ "$1" = "configure" ] && [ -n "$2" ]; then echo "Actualización desde la versión $2" # Recopy static files without configuration - cp /opt/opengnsys/ogrepository/etc/sudoers.d/opengnsys-repository /etc/sudoers.d/opengnsys + cp /opt/opengnsys/ogrepository/etc/sudoers.d/opengnsys-repository /etc/sudoers.d/opengnsys-repository OPENGNSYS_HOME=$(getent passwd opengnsys | cut -d: -f6) # Create .ssh directory mkdir -p $OPENGNSYS_HOME/.ssh # Copy ssh keys cp /opt/opengnsys/ogrepository/etc/opengnsys $OPENGNSYS_HOME/.ssh/id_ed25519 cp /opt/opengnsys/ogrepository/etc/opengnsys.pub $OPENGNSYS_HOME/.ssh/id_ed25519.pub + cat $OPENGNSYS_HOME/.ssh/id_ed25519.pub >> $OPENGNSYS_HOME/.ssh/authorized_keys fi