Skip to content
Snippets Groups Projects
Commit 3bb33214 authored by Bob Mottram's avatar Bob Mottram
Browse files

Also login option

parent 17f864bd
No related branches found
No related tags found
No related merge requests found
......@@ -241,19 +241,19 @@ tty_device=$(tty)
cd "${build_directory}" || exit 1
if [ ! "$build_info" ]; then
if ! sudo -u root /bin/bash -c -i "/usr/local/bin/${PROJECT_NAME}-image -t \"${target}\" ${extra} --ci yes --build-log \"${build_log_filename}\" > $tty_device"; then
if ! sudo -u root /bin/bash -c -i -l "/usr/local/bin/${PROJECT_NAME}-image -t \"${target}\" ${extra} --ci yes --build-log \"${build_log_filename}\" > $tty_device"; then
check_for_reboot "${build_log_filename}"
exit 10
fi
else
if [[ "$build_info" == 'onion' ]]; then
if ! sudo -u root /bin/bash -c -i "/usr/local/bin/${PROJECT_NAME}-image -t \"${target}\" ${extra} --onion yes --ci yes --build-log \"${build_log_filename}\" > $tty_device"; then
if ! sudo -u root /bin/bash -c -i -l "/usr/local/bin/${PROJECT_NAME}-image -t \"${target}\" ${extra} --onion yes --ci yes --build-log \"${build_log_filename}\" > $tty_device"; then
check_for_reboot "${build_log_filename}"
exit 20
fi
fi
if [[ "$build_info" == 'mesh'* ]]; then
if ! sudo -u root /bin/bash -c -i "/usr/local/bin/${PROJECT_NAME}-image -t \"${target}\" -v \"${build_info}\" ${extra} --ci yes --build-log \"${build_log_filename}\" > $tty_device"; then
if ! sudo -u root /bin/bash -c -i -l "/usr/local/bin/${PROJECT_NAME}-image -t \"${target}\" -v \"${build_info}\" ${extra} --ci yes --build-log \"${build_log_filename}\" > $tty_device"; then
check_for_reboot "${build_log_filename}"
exit 30
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment