Fix version in ogrepository
ogrepository/pipeline/tag This commit looks good Details

pull/37/head
Nicolas Arenas 2025-04-01 14:56:30 +02:00
parent 4316217faa
commit f8cb868a2a
1 changed files with 2 additions and 1 deletions

View File

@ -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