summaryrefslogtreecommitdiffstats
path: root/packages/apex-pdp-package-full/src/main/package/control/postinst
diff options
context:
space:
mode:
authorliamfallon <liam.fallon@ericsson.com>2018-09-11 11:30:44 +0100
committerliamfallon <liam.fallon@ericsson.com>2018-09-11 11:30:52 +0100
commit8801bb4b1c8b52acf0fb76fcf36eac84842ad7b7 (patch)
treedb287fae8564b72184c00996a599c80ebfefc197 /packages/apex-pdp-package-full/src/main/package/control/postinst
parent91a15073980a970220fe9ba67df18bf04bb8488b (diff)
Fix install script/examples on apex
The install script for apex did not coreate the soft link for apex correctly. One of the example json files was named incorrectlu. Issue-ID: POLICY-954 Change-Id: If7923e2287aebb956bd4bc9ed4b26b23a40d048b Signed-off-by: liamfallon <liam.fallon@ericsson.com>
Diffstat (limited to 'packages/apex-pdp-package-full/src/main/package/control/postinst')
-rw-r--r--packages/apex-pdp-package-full/src/main/package/control/postinst6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/apex-pdp-package-full/src/main/package/control/postinst b/packages/apex-pdp-package-full/src/main/package/control/postinst
index dab0fded7..1b12f5f2a 100644
--- a/packages/apex-pdp-package-full/src/main/package/control/postinst
+++ b/packages/apex-pdp-package-full/src/main/package/control/postinst
@@ -40,7 +40,7 @@ if [ -L "/opt/app/policy/apex-pdp" ]; then
fi
# Add soft link for latest version of Apex
-ln -s `ls /opt/app/policy/apex-pdp | grep -i '^apex-*' | sort | tail -1` /opt/app/policy/apex-pdp
+ln -s `ls /opt/app/policy | grep -i '^apex-*' | sort | tail -1` /opt/app/policy/apex-pdp
# Add Apex-specific directories and set ownership as the Apex admin user
mkdir -p /var/log/onap/policy/apex-pdp
@@ -49,11 +49,11 @@ chown -R apexuser:apexuser /var/log/onap/policy/apex-pdp
# Ensure everything has the correct permissions
find /opt/app -type d -perm 755
find /opt/app -type f -perm 644
-chmod a+x /opt/app/policy/apex-pdp/apex/bin/*
+chmod a+x /opt/app/policy/apex-pdp/bin/*
# Copy examples to Apex user area
if [ -e /home/apexuser/examples ]
then
rm -rf /home/apexuser/examples
fi
-cp -pr /opt/app/policy/apex-pdp/apex/examples /home/apexuser
+cp -pr /opt/app/policy/apex-pdp/examples /home/apexuser