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:
Pascal Vizeli 2018-07-05 13:44:52 +02:00 committed by GitHub
parent 46d6dba859
commit 6c58eb1615
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}