bugifx workbench deploy

use tee instead of cat

here ${SUDO} is used, because it is assumed a third party system which
could have its own configuration, so we deal the different situations
fine (with or without sudo, etc.)
This commit is contained in:
pedro 2024-09-19 12:40:49 -03:00
parent d3018abde9
commit 8627cd8003
1 changed files with 1 additions and 2 deletions

View File

@ -198,8 +198,7 @@ create_persistence_partition() {
mkdir -p "${tmp_rw_mount}" mkdir -p "${tmp_rw_mount}"
${SUDO} mount "$(pwd)/${rw_img_path}" "${tmp_rw_mount}" ${SUDO} mount "$(pwd)/${rw_img_path}" "${tmp_rw_mount}"
${SUDO} mkdir -p "${tmp_rw_mount}/settings" ${SUDO} mkdir -p "${tmp_rw_mount}/settings"
# TODO without SUDO fails ${SUDO} tee "${tmp_rw_mount}/settings/settings.ini" <<END
${SUDO} cat > "${tmp_rw_mount}/settings/settings.ini" <<END
[settings] [settings]
DH_TOKEN = DH_TOKEN =