Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
code-generic
code-webis-cmd
Commits
ba30c1a6
Commit
ba30c1a6
authored
Nov 02, 2020
by
Alban Bruder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update reset-ws cmd
parent
e6244479
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
tools/util/reset_ws.py
tools/util/reset_ws.py
+4
-1
No files found.
tools/util/reset_ws.py
View file @
ba30c1a6
...
...
@@ -142,6 +142,10 @@ def local(force, report, username, password, hostname, address, gateway, interfa
if
not
address
:
address
=
info
[
"address"
]
# for now: hardcode subnet
if
not
address
.
endswith
(
"/24"
):
address
+=
"/24"
if
not
gateway
:
gateway
=
info
[
"gateway"
]
...
...
@@ -170,7 +174,6 @@ def local(force, report, username, password, hostname, address, gateway, interfa
logger
.
info
(
"Downloading Ubuntu image. Please wait..."
)
subprocess
.
Popen
(
"wget --output-document /root/ubuntu.iso {}"
.
format
(
UBUNTU_ISO
),
shell
=
True
).
wait
()
logger
.
info
(
"Download complete."
)
logger
.
info
(
"Updating bootloader..."
)
uuid
=
get_uuid
(
"/root"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment