mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-08-09 22:52:30 +02:00
Default terminal workspace safely on upgrades
This commit is contained in:
@@ -33,9 +33,9 @@ if [ -z "$password" ]; then
|
|||||||
exec sleep infinity
|
exec sleep infinity
|
||||||
fi
|
fi
|
||||||
|
|
||||||
workspace="$(bashio::config 'terminal_workspace')"
|
|
||||||
if [ -z "$workspace" ]; then
|
|
||||||
workspace="${HOME}/workspace"
|
workspace="${HOME}/workspace"
|
||||||
|
if bashio::config.has_value 'terminal_workspace'; then
|
||||||
|
workspace="$(bashio::config 'terminal_workspace')"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
install -d -o abc -g abc "$workspace"
|
install -d -o abc -g abc "$workspace"
|
||||||
|
|||||||
Reference in New Issue
Block a user