Skip to content
Open
Changes from 3 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
Comment thread
jcleng marked this conversation as resolved.
mkdir -p /etc/static/
printf '/usr/bin/%s\n' sh bash > /etc/static/shells
Comment thread
jcleng marked this conversation as resolved.
fi

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