Skip to content

Commit d9eab88

Browse files
committed
go back to user 1000
1 parent 35c7623 commit d9eab88

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

src/base/.devcontainer/scripts/root_install.sh

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,4 @@ mkdir -p /usr/share/secrets-scanner
6767
chmod 755 /usr/share/secrets-scanner
6868
curl -L https://raw.githubusercontent.com/NHSDigital/software-engineering-quality-framework/main/tools/nhsd-git-secrets/nhsd-rules-deny.txt -o /usr/share/secrets-scanner/nhsd-rules-deny.txt
6969

70-
# fix user and group ids for vscode user to be 1001 so it can be used by github actions
71-
requested_uid=1001
72-
requested_gid=1001
73-
current_uid="$(id -u vscode)"
74-
current_gid="$(id -g vscode)"
75-
if [ "${current_gid}" != "${requested_gid}" ]; then groupmod -g "${requested_gid}" vscode; fi
76-
if [ "${current_uid}" != "${requested_uid}" ]; then usermod -u "${requested_uid}" -g "${requested_gid}" vscode; fi
7770
chown -R vscode:vscode /home/vscode
78-
79-
# link /home/vscode to /github/home for github actions to be able to access files in the container, and set permissions
80-
mkdir -p /github
81-
ln -s /home/vscode /github/home
82-
chown -R vscode:vscode /github/home

0 commit comments

Comments
 (0)