File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -266,6 +266,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
266
266
267
267
## Versions
268
268
269
+ * ** 29.12.21:** - Add ` install-extension ` as a helper for mods to install extensions.
269
270
* ** 06.12.21:** - Add ` DEFAULT_WORKSPACE ` env var.
270
271
* ** 29.11.21:** - Rebase to Ubuntu focal.
271
272
* ** 16.09.21:** - Fix slow ` chown ` on large workspace (contents of workspace folder no longer chowned).
Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ app_setup_block: |
77
77
78
78
# changelog
79
79
changelogs :
80
+ - { date: "29.12.21:", desc: "Add `install-extension` as a helper for mods to install extensions." }
80
81
- { date: "06.12.21:", desc: "Add `DEFAULT_WORKSPACE` env var." }
81
82
- { date: "29.11.21:", desc: "Rebase to Ubuntu focal." }
82
83
- { date: "16.09.21:", desc: "Fix slow `chown` on large workspace (contents of workspace folder no longer chowned)." }
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/with-contenv bash
2
+ # shellcheck shell=bash
3
+
4
+ _install=(/usr/local/bin/code-server "--extensions-dir" "/config/extensions" "--install-extension")
5
+
6
+ if [ "$(whoami)" == "abc" ]; then
7
+ "${_install[@]}" "$@"
8
+ else
9
+ s6-setuidgid abc "${_install[@]}" "$@"
10
+ fi
You can’t perform that action at this time.
0 commit comments