deploy-workbench: detect nfs env

This commit is contained in:
pedro 2024-09-25 13:40:00 -03:00
parent a70179223a
commit 4fcdcc8955
1 changed files with 7 additions and 1 deletions

View File

@ -269,7 +269,13 @@ stty -echo # Do not show what we type in terminal so it does not meddle with our
dmesg -n 1 # Do not report *useless* system messages to the terminal dmesg -n 1 # Do not report *useless* system messages to the terminal
# clearly specify the right working directory, used in the python script as os.getcwd() # clearly specify the right working directory, used in the python script as os.getcwd()
cd /mnt cd /mnt
pipenv run python /opt/workbench/workbench-script.py --config "/mnt/settings/settings.ini" # detect pxe env
if [ -d /run/live/medium ]; then
config_path='/run/live/medium/settings.ini'
else
config_path='/mnt/settings.ini'
fi
pipenv run python /opt/workbench/workbench-script.py --config "\${config_path}"
stty echo stty echo
END END
#TODO add some useful commands #TODO add some useful commands