Fix version in ogrepository
ogrepository/pipeline/tag This commit looks good
Details
ogrepository/pipeline/tag This commit looks good
Details
parent
4316217faa
commit
f8cb868a2a
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue