mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-17 13:14:21 +01:00
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:
committed by
Pascal Vizeli
parent
f8ee1aed33
commit
aca8de1cba
@@ -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
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
export PS1="\$ "
|
export PS1="\W \$ "
|
||||||
cat /etc/motd
|
cat /etc/motd
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user