aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/dist/sdc-onboard-backend-docker/artifacts/scripts/cleanup_jettydir.sh
diff options
context:
space:
mode:
authorrohit.raj@t-systems.com <rohit.raj@t-systems.com>2025-01-22 20:40:10 +0100
committerrohit.raj@t-systems.com <rohit.raj@t-systems.com>2025-01-22 20:40:23 +0100
commit110909a23b78884a58710d4d304ab51ef1233095 (patch)
tree4cb2df350238a9504cd8c193d6e2f92e14ba5164 /openecomp-be/dist/sdc-onboard-backend-docker/artifacts/scripts/cleanup_jettydir.sh
parent7529a63846644ae84d33b8c0588f24fb258f27d5 (diff)
Chef removal changes for openecomp-be1.13.9
- Removal of Chef recipes in the module. - Introduction of shell scripts in the module to replace some recipes. - Generation of module configuration using Charts. - Introduction of config files in integration tests to simulate files generated by Charts in the module. Issue-ID: SDC-4698 Change-Id: I9bb68309d49899247a9cebe4142a568f5ee597f2 Signed-off-by: rohit.raj@t-systems.com <rohit.raj@t-systems.com>
Diffstat (limited to 'openecomp-be/dist/sdc-onboard-backend-docker/artifacts/scripts/cleanup_jettydir.sh')
-rw-r--r--openecomp-be/dist/sdc-onboard-backend-docker/artifacts/scripts/cleanup_jettydir.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/openecomp-be/dist/sdc-onboard-backend-docker/artifacts/scripts/cleanup_jettydir.sh b/openecomp-be/dist/sdc-onboard-backend-docker/artifacts/scripts/cleanup_jettydir.sh
new file mode 100644
index 0000000000..fdb4befb1c
--- /dev/null
+++ b/openecomp-be/dist/sdc-onboard-backend-docker/artifacts/scripts/cleanup_jettydir.sh
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+#Create temp directory
+mkdir -p "$JETTY_BASE/temp"
+chown "$JETTY_USER:$JETTY_GROUP" "$JETTY_BASE/temp"
+chmod 0755 "$JETTY_BASE/temp"
+
+# Create config directory
+mkdir -p "$JETTY_BASE/config"
+chown "$JETTY_USER:$JETTY_GROUP" "$JETTY_BASE/config"
+chmod 0755 "$JETTY_BASE/config"
+
+# Create onboarding-be directory
+mkdir -p "$JETTY_BASE/config/onboarding-be"
+chown -R "$JETTY_USER:$JETTY_GROUP" "$JETTY_BASE/config/onboarding-be"
+chmod -R 0755 "$JETTY_BASE/config/onboarding-be"
+
+#Create etc directory
+mkdir -p "$JETTY_BASE/etc"
+chown -R "$JETTY_USER:$JETTY_GROUP" "$JETTY_BASE/etc"
+chmod -R 0755 "$JETTY_BASE/etc"