Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ for i in "${SDK[@]}"; do
fi
done

# Create /etc/static/shells before than /etc/shells, because /etc/shells ls linkd etc/static/shells
# when use nixos is default has't /etc/static/shells
if [ ! -f /etc/static/shells ]; then
mkdir -p /etc/static/
printf '/usr/bin/%s\n' sh bash > /etc/static/shells
fi

if [ ! -e /etc/shells ] && [ -e /var/run/host/etc/shells ]; then
ln -s /var/run/host/etc/shells /etc/shells
fi
Expand Down