From 73a3374eb410cc6f1b896f9f15db55287b1cecbb Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Tue, 28 May 2024 13:17:03 +0000 Subject: [PATCH] helloworkd-flask: convert WORKDIR references to UNPACKDIR unpacked source files are now in UNPACKDIR, so we adjust our operations to match. Signed-off-by: Bruce Ashfield --- .../helloworld-flask/helloworld-flask_0.1.bb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/recipes-demo/helloworld-flask/helloworld-flask_0.1.bb b/recipes-demo/helloworld-flask/helloworld-flask_0.1.bb index 896e45fd..3f5507b3 100644 --- a/recipes-demo/helloworld-flask/helloworld-flask_0.1.bb +++ b/recipes-demo/helloworld-flask/helloworld-flask_0.1.bb @@ -19,20 +19,20 @@ EXTERNALPORT ?= "10000" do_install() { for tgt in flask-app.yaml flask-app-service.yaml; do - sed -i 's%\@NAME\@%${NAME}%g' ${WORKDIR}/$tgt - sed -i 's%\@APPNAME\@%${APPNAME}%g' ${WORKDIR}/$tgt - sed -i 's%\@CONTAINERNAME\@%${CONTAINERNAME}%g' ${WORKDIR}/$tgt - sed -i 's%\@CONTAINERIMAGE\@%${CONTAINERIMAGE}%g' ${WORKDIR}/$tgt - sed -i 's%\@CONTAINERPORT\@%${CONTAINERPORT}%g' ${WORKDIR}/$tgt - sed -i 's%\@EXTERNALPORT\@%${EXTERNALPORT}%g' ${WORKDIR}/$tgt + sed -i 's%\@NAME\@%${NAME}%g' ${UNPACKDIR}/$tgt + sed -i 's%\@APPNAME\@%${APPNAME}%g' ${UNPACKDIR}/$tgt + sed -i 's%\@CONTAINERNAME\@%${CONTAINERNAME}%g' ${UNPACKDIR}/$tgt + sed -i 's%\@CONTAINERIMAGE\@%${CONTAINERIMAGE}%g' ${UNPACKDIR}/$tgt + sed -i 's%\@CONTAINERPORT\@%${CONTAINERPORT}%g' ${UNPACKDIR}/$tgt + sed -i 's%\@EXTERNALPORT\@%${EXTERNALPORT}%g' ${UNPACKDIR}/$tgt done install -d ${D}${bindir}/ - install -m 755 ${WORKDIR}/flask-app ${D}${bindir}/ + install -m 755 ${UNPACKDIR}/flask-app ${D}${bindir}/ install -d ${D}${sysconfdir}/deploy - install -m 644 ${WORKDIR}/flask-app.yaml ${D}${sysconfdir}/ - install -m 644 ${WORKDIR}/flask-app-service.yaml ${D}${sysconfdir}/ + install -m 644 ${UNPACKDIR}/flask-app.yaml ${D}${sysconfdir}/ + install -m 644 ${UNPACKDIR}/flask-app-service.yaml ${D}${sysconfdir}/ } RDEPENDS:${PN} += "python3-core python3-flask"