From 8a634a5f7192aff0d013192637adae47bec6833d Mon Sep 17 00:00:00 2001 From: Nicolas Arenas Date: Thu, 6 Feb 2025 14:18:41 +0100 Subject: [PATCH] Create opngsys user by installer Set permissions to env.json --- .../component-installer/component-installer.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/non_graf_installer/component-installer/component-installer.sh b/non_graf_installer/component-installer/component-installer.sh index 28298d8..08ef618 100644 --- a/non_graf_installer/component-installer/component-installer.sh +++ b/non_graf_installer/component-installer/component-installer.sh @@ -21,6 +21,10 @@ OGREPOSITORY_REPO="$OPENGNSYS_BASE_URL/ogrepository.git" export GIT_SSL_NO_VERIFY=1 +# Creamos el usuario opengnsys + +useradd -m -d /opt/opengnsys -r -s /bin/bash opengnsys + ## Functions function install_docker() { @@ -123,7 +127,7 @@ do mkdir -p $component_dir/etc cp $component_dir/repo/.env $component_dir/etc/ cp $component_dir/repo/env.json $component_dir/etc/ - chown 82:82 $component_dir/etc/ + chown 82:82 $component_dir/etc/env.json mkdir -p $component_dir/bin/ cp $CONFIGS_DIR/provision_ogcore.sh $component_dir/bin/ chmod 755 $component_dir/bin/provision_ogcore.sh