diff options
Diffstat (limited to 'common/scripts/application-lifecycle.sh')
-rwxr-xr-x | common/scripts/application-lifecycle.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/scripts/application-lifecycle.sh b/common/scripts/application-lifecycle.sh index ee3d790..b9b3328 100755 --- a/common/scripts/application-lifecycle.sh +++ b/common/scripts/application-lifecycle.sh @@ -123,7 +123,7 @@ inspect_wgt() { fi # the file naming convention is servicename.wgt # but some didnt respect it - export WGTSERVICENAME=$(grep '<name>' config.xml | cut -d'>' -f2 | cut -d'<' -f1) + export WGTSERVICENAME=$(grep 'id=.*' config.xml | sed 's,^.*id=,id=,' | cut -d= -f2 | cut -d'"' -f2) if [ -z "$WGTSERVICENAME" ];then echo "WARN: failed to find name in config.xml, fallback to filename" export WGTSERVICENAME="$WGTNAME" |