workbench deploy: bugfix workbench-script copy

create directory and enforce that it is copied in directory
This commit is contained in:
pedro 2024-09-19 13:05:52 -03:00
parent a9af55d109
commit b005a5e158
1 changed files with 3 additions and 2 deletions

View File

@ -260,8 +260,9 @@ prepare_app() {
# prepare app during prepare_chroot_env # prepare app during prepare_chroot_env
# Install hardware_metadata module # Install hardware_metadata module
workbench_dir="${ISO_PATH}/chroot/opt/workbench" workbench_dir="${ISO_PATH}/chroot/opt/workbench"
${SUDO} cp workbench-script.py "${workbench_dir}" ${SUDO} mkdir -p "${workbench_dir}"
${SUDO} cp requirements.txt "${workbench_dir}" ${SUDO} cp workbench-script.py "${workbench_dir}/"
${SUDO} cp requirements.txt "${workbench_dir}/"
# startup script execution # startup script execution
cat > "${ISO_PATH}/chroot/root/.profile" <<END cat > "${ISO_PATH}/chroot/root/.profile" <<END