File tree 2 files changed +4
-6
lines changed
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 1
- # Copyright (C) 2018-2024 VyOS maintainers and contributors
1
+ # Copyright (C) 2018-2025 VyOS maintainers and contributors
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# in order to easy exprort images built to "external" world
@@ -367,9 +367,8 @@ RUN sed "s/^%sudo.*/%sudo\tALL=(ALL) NOPASSWD:ALL/g" -i /etc/sudoers && \
367
367
echo "vyos_bld\t ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && \
368
368
chmod a+s /usr/sbin/useradd /usr/sbin/groupadd
369
369
370
- # Ensure sure all users have access to our OCAM and Go installation
371
- RUN echo "eval \$ (opam env --root=/opt/opam --set-root)" >> /etc/skel/.bashrc && \
372
- echo "export PATH=/opt/go/bin:\$ PATH" >> /etc/skel/.bashrc
370
+ # Ensure sure all users have access to Go
371
+ RUN echo "export PATH=/opt/go/bin:\$ PATH" >> /etc/skel/.bashrc
373
372
374
373
# Rise upper limit for UID when working in an Active Direcotry integrated
375
374
# environment. This solves the warning: vyos_bld's uid 1632000007 outside of the
Original file line number Diff line number Diff line change @@ -24,8 +24,7 @@ if ! grep -q $NEW_GID /etc/group; then
24
24
fi
25
25
26
26
useradd --shell /bin/bash --uid $NEW_UID --gid $NEW_GID --non-unique --create-home $USER_NAME
27
- sudo cp /etc/skel/.* /home/$USER_NAME
28
- sudo chown -R $NEW_UID :$NEW_GID /home/$USER_NAME
27
+ sudo chown $NEW_UID :$NEW_GID /home/$USER_NAME
29
28
export HOME=/home/$USER_NAME
30
29
31
30
if [ " $( id -u) " == " 0" ]; then
You can’t perform that action at this time.
0 commit comments