pxe: more useful warning error

This commit is contained in:
pedro 2024-09-25 13:47:43 -03:00
parent 6bb491ce1c
commit 8e6c80821a
1 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ END
if [ -f "settings.ini" ]; then if [ -f "settings.ini" ]; then
cp settings.ini "${nfs_path}/settings.ini" cp settings.ini "${nfs_path}/settings.ini"
else 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 exit 1
fi fi
fi fi
@ -89,7 +89,7 @@ init_config() {
if [ -f ./.env ]; then if [ -f ./.env ]; then
. ./.env . ./.env
else 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 fi
VERSION_CODENAME="${VERSION_CODENAME:-bookworm}" VERSION_CODENAME="${VERSION_CODENAME:-bookworm}"
tftp_path="${tftp_path:-/srv/pxe-tftp}" tftp_path="${tftp_path:-/srv/pxe-tftp}"