mirror of
https://github.com/linuxserver/docker-openvscode-server.git
synced 2026-01-22 05:16:42 +08:00
Merge pull request #10 from linuxserver/mod-helper/insiders
This commit is contained in:
commit
ce06f9deaf
@ -252,6 +252,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
|
||||
|
||||
## Versions
|
||||
|
||||
* **29.12.21:** - Add `install-extension` as a helper for mods to install extensions.
|
||||
* **30.11.21:** - Fix app folder permissions, add the optional sudo password vars.
|
||||
* **29.11.21:** - Create `.profile` and `.bashrc` for the user.
|
||||
* **29.11.21:** - Release `insiders` tag.
|
||||
|
||||
@ -62,6 +62,7 @@ app_setup_block: |
|
||||
|
||||
# changelog
|
||||
changelogs:
|
||||
- { date: "29.12.21:", desc: "Add `install-extension` as a helper for mods to install extensions." }
|
||||
- { date: "30.11.21:", desc: "Fix app folder permissions, add the optional sudo password vars." }
|
||||
- { date: "29.11.21:", desc: "Create `.profile` and `.bashrc` for the user." }
|
||||
- { date: "29.11.21:", desc: "Release `insiders` tag." }
|
||||
|
||||
10
root/usr/local/bin/install-extension
Normal file
10
root/usr/local/bin/install-extension
Normal file
@ -0,0 +1,10 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
# shellcheck shell=bash
|
||||
|
||||
_install=(/app/openvscode-server/server.sh "--extensions-dir" "/config/.vscode-remote/extensions" "--install-extension")
|
||||
|
||||
if [ "$(whoami)" == "abc" ]; then
|
||||
"${_install[@]}" "$@"
|
||||
else
|
||||
s6-setuidgid abc "${_install[@]}" "$@"
|
||||
fi
|
||||
Loading…
x
Reference in New Issue
Block a user