Fix version in ogrepository
ogrepository/pipeline/tag There was a failure building this commit Details

pull/37/head
Nicolas Arenas 2025-04-01 15:00:24 +02:00
parent f8cb868a2a
commit 15769dde0f
1 changed files with 2 additions and 2 deletions

View File

@ -70,11 +70,11 @@ done
sed -i "s/OGCOREIP/$OGCORE_IP/g" /opt/opengnsys/ogrepository/etc/ogAdmRepo.cfg
# Copiar sudoers file ogrepository/etc/opengnsys-repository
cp /opt/opengnsys/ogrepository/etc/sudoers.d/opengnsys-repository /etc/sudoers.d/opengnsys
cp /opt/opengnsys/ogrepository/etc/opengnsys-repository /etc/sudoers.d/opengnsys
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-repository
cp /opt/opengnsys/ogrepository/etc/opengnsys-repository /etc/sudoers.d/opengnsys-repository
OPENGNSYS_HOME=$(getent passwd opengnsys | cut -d: -f6)
# Create .ssh directory
mkdir -p $OPENGNSYS_HOME/.ssh