From ab778a881d200f9abec51a1aef11b5bcaf8970c7 Mon Sep 17 00:00:00 2001 From: pedro Date: Wed, 25 Sep 2024 13:47:43 -0300 Subject: [PATCH] pxe: more useful warning error --- pxe/install-pxe.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pxe/install-pxe.sh b/pxe/install-pxe.sh index 5169e6a..ed94e07 100755 --- a/pxe/install-pxe.sh +++ b/pxe/install-pxe.sh @@ -34,7 +34,7 @@ END if [ -f "settings.ini" ]; then cp settings.ini "${nfs_path}/settings.ini" else - echo "ERROR: ../settings.ini does not exist yet, cannot read config from there. You can take inspiration with file ../settings.ini.example" + echo "ERROR: $(pwd)/settings.ini does not exist yet, cannot read config from there. You can take inspiration with file $(pwd)/settings.ini.example" exit 1 fi fi @@ -89,7 +89,7 @@ init_config() { if [ -f ./.env ]; then . ./.env else - echo 'PXE: WARNING: .env does not exist yet, cannot read config from there. You can take inspiration with file .env.example' + echo "PXE: WARNING: $(pwd)/.env does not exist yet, cannot read config from there. You can take inspiration with file $(pwd)/.env.example" fi VERSION_CODENAME="${VERSION_CODENAME:-bookworm}" tftp_path="${tftp_path:-/srv/pxe-tftp}"