Skip to content

Commit ca8fbaf

Browse files
authored
Merge pull request #4 from linuxserver/insiders-profile
Create `.profile` and `.bashrc` for the user
2 parents 1de1f74 + 59aaae8 commit ca8fbaf

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ git config --global user.name "username"
7878
git config --global user.email "email address"
7979
```
8080

81+
When reverse proxied through SWAG, custom services running on specific ports inside openvscode-server can be accessed at `https://PORT.openvscode-server.domain.com` very much like how code-server's port proxy function is handled. For that, a wildcard CNAME `*.openvscode-server.domain.com` needs to be created and the SWAG cert needs to cover those subdomains.
82+
8183
## Usage
8284

8385
Here are some example snippets to help you get started creating a container.
@@ -243,5 +245,6 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
243245

244246
## Versions
245247

248+
* **29.11.21:** - Create `.profile` and `.bashrc` for the user.
246249
* **29.11.21:** - Release `insiders` tag.
247250
* **28.11.21:** - Initial Release.

readme-vars.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,12 @@ app_setup_block: |
5454
git config --global user.email "email address"
5555
```
5656
57+
When reverse proxied through SWAG, custom services running on specific ports inside openvscode-server can be accessed at `https://PORT.openvscode-server.domain.com` very much like how code-server's port proxy function is handled. For that, a wildcard CNAME `*.openvscode-server.domain.com` needs to be created and the SWAG cert needs to cover those subdomains.
58+
59+
5760
5861
# changelog
5962
changelogs:
63+
- { date: "29.11.21:", desc: "Create `.profile` and `.bashrc` for the user." }
6064
- { date: "29.11.21:", desc: "Release `insiders` tag." }
6165
- { date: "28.11.21:", desc: "Initial Release." }

root/etc/cont-init.d/30-config

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ if [ -n "${SUDO_PASSWORD}" ] || [ -n "${SUDO_PASSWORD_HASH}" ]; then
1717
fi
1818
fi
1919

20+
[[ ! -f /config/.bashrc ]] && \
21+
cp /root/.bashrc /config/.bashrc
22+
[[ ! -f /config/.profile ]] && \
23+
cp /root/.profile /config/.profile
24+
2025
# permissions
2126
if [ -f "/usr/bin/find" ] && [ -f "/usr/bin/xargs" ]; then
2227
CORES=$(nproc --all)

0 commit comments

Comments
 (0)