ssh: Update CLI & Web terminal (#1068)

This commit is contained in:
Franck Nijhof
2020-02-12 00:10:46 +01:00
committed by GitHub
parent 6725b3f7da
commit 75ce67fc5e
8 changed files with 24 additions and 12 deletions

View File

@@ -52,7 +52,7 @@ chmod 600 /data/.bash_history
ln -s -f /data/.bash_history /root/.bash_history
# Make Home Assistant TOKEN available on the CLI
echo "export HASSIO_TOKEN=${HASSIO_TOKEN}" >> /etc/profile.d/hassio.sh
echo "export SUPERVISOR_TOKEN=${SUPERVISOR_TOKEN}" >> /etc/profile.d/homeassistant.sh
# Remove old HASSIO_TOKEN from bash profile (if exists)
if bashio::fs.file_exists /data/.bash_profile; then
@@ -100,7 +100,7 @@ WAIT_PIDS+=($!)
# Start ttyd server
bashio::log.info "Starting Web Terminal..."
cd /root
ttyd -p 8099 tmux -u new -A -s hassio bash -l &
ttyd -p 8099 tmux -u new -A -s homeassistant bash -l &
WAIT_PIDS+=($!)
# Wait until all is done