mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-18 21:54:20 +01:00
ssh: Update CLI & Web terminal (#1068)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user