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 Pascal Vizeli
parent b75fc91f8b
commit 0e7f516730

View File

@ -31,4 +31,8 @@ function fix_rootfs() {
function install_hassos_cli() { function install_hassos_cli() {
sed -i "s|\(root.*\)/bin/sh|\1/usr/sbin/hassos-cli|" ${TARGET_DIR}/etc/passwd 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
} }