#!/bin/sh

LPKGDIR="$1"

chmod a+x subemsd_startup.sh
mkdir -p "${LPKGDIR}/bin" "${LPKGDIR}/platspec" "${LPKGDIR}/app/config"

cp -v -f ems_smu subemsd_startup.sh "${LPKGDIR}/bin/" && \
	cp -v -P -f ../config/* "${LPKGDIR}/app/config/" && \
	cp -r -P -f ../files/smu_nodes "${LPKGDIR}/app/config/" && \
	cp -r -P -f ../files/subemsd.service "${LPKGDIR}/platspec/"

exit $?
