Fix missing .bash_profile on fresh install, add current path to prompt (#957)

* ssh: Fix for non existing .bash_profile startup error

* ssh: Add current, short, path to command line prompt

* ssh: Bump to 8.1, updated changelog
This commit is contained in:
Franck Nijhof
2019-12-30 10:52:49 +01:00
committed by Pascal Vizeli
parent f8ee1aed33
commit aca8de1cba
4 changed files with 8 additions and 2 deletions

View File

@@ -1,5 +1,10 @@
# Changelog # Changelog
## 8.1
- Fix for non existing .bash_profile startup error
- Add current, short, path to command line prompt
## 8.0 ## 8.0
- Add support for a web-based terminal via Ingress - Add support for a web-based terminal via Ingress

View File

@@ -1,6 +1,6 @@
{ {
"name": "SSH server", "name": "SSH server",
"version": "8.0", "version": "8.1",
"slug": "ssh", "slug": "ssh",
"description": "Allows connections over SSH", "description": "Allows connections over SSH",
"url": "https://github.com/home-assistant/hassio-addons/tree/master/ssh", "url": "https://github.com/home-assistant/hassio-addons/tree/master/ssh",

View File

@@ -1,3 +1,3 @@
#!/usr/bin/env bash #!/usr/bin/env bash
export PS1="\$ " export PS1="\W \$ "
cat /etc/motd cat /etc/motd

View File

@@ -58,6 +58,7 @@ if bashio::fs.file_exists /data/.bash_profile; then
fi fi
# Persist .bash_profile by redirecting .bash_profile to /data # Persist .bash_profile by redirecting .bash_profile to /data
touch /data/.bash_profile
chmod 600 /data/.bash_profile chmod 600 /data/.bash_profile
ln -s -f /data/.bash_profile /root/.bash_profile ln -s -f /data/.bash_profile /root/.bash_profile