Skip to content

Commit b451560

Browse files
authored
Merge pull request #5 from linuxserver/main-profile
Create `.profile` and `.bashrc` for the user.
2 parents dc3c209 + f763e93 commit b451560

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,4 +245,6 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
245245

246246
## Versions
247247

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

readme-vars.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,6 @@ app_setup_block: |
5959
6060
# changelog
6161
changelogs:
62+
- { date: "29.11.21:", desc: "Create `.profile` and `.bashrc` for the user." }
63+
- { date: "29.11.21:", desc: "Release `insiders` tag." }
6264
- { 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)