Create opngsys user by installer
oginstaller/pipeline/head There was a failure building this commit Details
oginstaller/pipeline/pr-main There was a failure building this commit Details

Set permissions to env.json
ogrepo-keys
Nicolas Arenas 2025-02-06 14:18:41 +01:00
parent b717e2b7ee
commit 8a634a5f71
1 changed files with 5 additions and 1 deletions

View File

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