Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
devcontainer-features
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eazydevelop-devcontainer-temp
devcontainer-features
Commits
ba5967b1
Commit
ba5967b1
authored
May 31, 2022
by
Josh Spicer
Committed by
GitHub
May 31, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'main' of
https://github.com/devcontainers/features
parents
8fa5b691
62086e33
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
10 deletions
+6
-10
install.sh
src/anaconda/install.sh
+3
-5
install.sh
src/hugo/install.sh
+3
-5
No files found.
src/anaconda/install.sh
View file @
ba5967b1
...
@@ -28,7 +28,7 @@ rm -f /etc/profile.d/00-restore-env.sh
...
@@ -28,7 +28,7 @@ rm -f /etc/profile.d/00-restore-env.sh
echo
"export PATH=
${
PATH
//
$(
sh
-lc
'echo $PATH'
)
/\
$PATH
}
"
>
/etc/profile.d/00-restore-env.sh
echo
"export PATH=
${
PATH
//
$(
sh
-lc
'echo $PATH'
)
/\
$PATH
}
"
>
/etc/profile.d/00-restore-env.sh
chmod
+x /etc/profile.d/00-restore-env.sh
chmod
+x /etc/profile.d/00-restore-env.sh
#
If in automatic mode, determine if a user already exists, if not use vscode
#
Determine the appropriate non-root user
if
[
"
${
USERNAME
}
"
=
"auto"
]
||
[
"
${
USERNAME
}
"
=
"automatic"
]
;
then
if
[
"
${
USERNAME
}
"
=
"auto"
]
||
[
"
${
USERNAME
}
"
=
"automatic"
]
;
then
USERNAME
=
""
USERNAME
=
""
POSSIBLE_USERS
=(
"vscode"
"node"
"codespace"
"
$(
awk
-v
val
=
1000
-F
":"
'$3==val{print $1}'
/etc/passwd
)
"
)
POSSIBLE_USERS
=(
"vscode"
"node"
"codespace"
"
$(
awk
-v
val
=
1000
-F
":"
'$3==val{print $1}'
/etc/passwd
)
"
)
...
@@ -39,12 +39,10 @@ if [ "${USERNAME}" = "auto" ] || [ "${USERNAME}" = "automatic" ]; then
...
@@ -39,12 +39,10 @@ if [ "${USERNAME}" = "auto" ] || [ "${USERNAME}" = "automatic" ]; then
fi
fi
done
done
if
[
"
${
USERNAME
}
"
=
""
]
;
then
if
[
"
${
USERNAME
}
"
=
""
]
;
then
USERNAME
=
vscode
USERNAME
=
root
fi
fi
elif
[
"
${
USERNAME
}
"
=
"none"
]
;
then
elif
[
"
${
USERNAME
}
"
=
"none"
]
||
!
id
-u
${
USERNAME
}
>
/dev/null 2>&1
;
then
USERNAME
=
root
USERNAME
=
root
USER_UID
=
0
USER_GID
=
0
fi
fi
architecture
=
"
$(
uname
-m
)
"
architecture
=
"
$(
uname
-m
)
"
...
...
src/hugo/install.sh
View file @
ba5967b1
...
@@ -27,7 +27,7 @@ rm -f /etc/profile.d/00-restore-env.sh
...
@@ -27,7 +27,7 @@ rm -f /etc/profile.d/00-restore-env.sh
echo
"export PATH=
${
PATH
//
$(
sh
-lc
'echo $PATH'
)
/\
$PATH
}
"
>
/etc/profile.d/00-restore-env.sh
echo
"export PATH=
${
PATH
//
$(
sh
-lc
'echo $PATH'
)
/\
$PATH
}
"
>
/etc/profile.d/00-restore-env.sh
chmod
+x /etc/profile.d/00-restore-env.sh
chmod
+x /etc/profile.d/00-restore-env.sh
#
If in automatic mode, determine if a user already exists, if not use vscode
#
Determine the appropriate non-root user
if
[
"
${
USERNAME
}
"
=
"auto"
]
||
[
"
${
USERNAME
}
"
=
"automatic"
]
;
then
if
[
"
${
USERNAME
}
"
=
"auto"
]
||
[
"
${
USERNAME
}
"
=
"automatic"
]
;
then
USERNAME
=
""
USERNAME
=
""
POSSIBLE_USERS
=(
"vscode"
"node"
"codespace"
"
$(
awk
-v
val
=
1000
-F
":"
'$3==val{print $1}'
/etc/passwd
)
"
)
POSSIBLE_USERS
=(
"vscode"
"node"
"codespace"
"
$(
awk
-v
val
=
1000
-F
":"
'$3==val{print $1}'
/etc/passwd
)
"
)
...
@@ -38,12 +38,10 @@ if [ "${USERNAME}" = "auto" ] || [ "${USERNAME}" = "automatic" ]; then
...
@@ -38,12 +38,10 @@ if [ "${USERNAME}" = "auto" ] || [ "${USERNAME}" = "automatic" ]; then
fi
fi
done
done
if
[
"
${
USERNAME
}
"
=
""
]
;
then
if
[
"
${
USERNAME
}
"
=
""
]
;
then
USERNAME
=
vscode
USERNAME
=
root
fi
fi
elif
[
"
${
USERNAME
}
"
=
"none"
]
;
then
elif
[
"
${
USERNAME
}
"
=
"none"
]
||
!
id
-u
${
USERNAME
}
>
/dev/null 2>&1
;
then
USERNAME
=
root
USERNAME
=
root
USER_UID
=
0
USER_GID
=
0
fi
fi
architecture
=
"
$(
uname
-m
)
"
architecture
=
"
$(
uname
-m
)
"
...
...
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