Skip to content

Commit 0ada681

Browse files
committed
preserve E2B_LOCAL var in sudo
1 parent 6d703a4 commit 0ada681

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

template/template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def make_template(
144144
template = template.set_user("user").set_workdir("/home/user")
145145

146146
if is_docker:
147-
start_cmd = "sudo /root/.jupyter/start-up.sh"
147+
start_cmd = "sudo --preserve-env=E2B_LOCAL /root/.jupyter/start-up.sh"
148148
else:
149149
start_cmd = "sudo systemctl start jupyter"
150150

0 commit comments

Comments
 (0)