From 4634061f41eedb6bcfc8e646dd0c208ed0e8606c Mon Sep 17 00:00:00 2001 From: Nicolas Arenas Date: Thu, 6 Feb 2025 12:09:46 +0100 Subject: [PATCH] Fix env.json owner 82 82 to allow changes in container --- non_graf_installer/component-installer/component-installer.sh | 2 +- non_graf_installer/component-installer/provision_ogcore.sh | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/non_graf_installer/component-installer/component-installer.sh b/non_graf_installer/component-installer/component-installer.sh index 54a3125..28298d8 100644 --- a/non_graf_installer/component-installer/component-installer.sh +++ b/non_graf_installer/component-installer/component-installer.sh @@ -123,7 +123,7 @@ do mkdir -p $component_dir/etc cp $component_dir/repo/.env $component_dir/etc/ cp $component_dir/repo/env.json $component_dir/etc/ - mkdir -p $component_dir/etc/ + chown 82:82 $component_dir/etc/ mkdir -p $component_dir/bin/ cp $CONFIGS_DIR/provision_ogcore.sh $component_dir/bin/ chmod 755 $component_dir/bin/provision_ogcore.sh diff --git a/non_graf_installer/component-installer/provision_ogcore.sh b/non_graf_installer/component-installer/provision_ogcore.sh index 3d9c06a..208f1de 100644 --- a/non_graf_installer/component-installer/provision_ogcore.sh +++ b/non_graf_installer/component-installer/provision_ogcore.sh @@ -48,7 +48,6 @@ curl -k -L --location 'https://localhost:8443/users' \ --header "Authorization: Bearer $bearer" \ --data "{ \"username\": \"$adminuser\", \"password\": \"$adminpass\", \"roles\": [\"ROLE_SUPER_ADMIN\"] }" -chown 82:82 /opt/opengnsys/ogCore/etc/env.json touch /opt/opengnsys/ogCore/installer/.deployed exit 0