summaryrefslogtreecommitdiffstats
path: root/openecomp-be/dist/sdc-onboard-backend-docker/artifacts/scripts/cleanup_jettydir.sh
blob: fdb4befb1c7e1676a707dd363f479d18a0b82489 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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"