mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-27 06:56:29 +00:00
Fix /usr/sbin/hassos-cli is not in /etc/shells (#78)
* Update rootfs-layer.sh * Update rootfs-layer.sh * Update rootfs-layer.sh
This commit is contained in:
parent
b75fc91f8b
commit
0e7f516730
@ -31,4 +31,8 @@ function fix_rootfs() {
|
||||
function install_hassos_cli() {
|
||||
|
||||
sed -i "s|\(root.*\)/bin/sh|\1/usr/sbin/hassos-cli|" ${TARGET_DIR}/etc/passwd
|
||||
|
||||
if ! grep "hassos-cli" ${TARGET_DIR}/etc/shells; then
|
||||
echo "/usr/sbin/hassos-cli" >> ${TARGET_DIR}/etc/shells
|
||||
fi
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user