Files
dash/post_update.sh
2026-04-03 18:52:46 +03:00

11 lines
227 B
Bash

#!/bin/sh
SHELLS="/bin/dash /usr/bin/dash"
for _shell in $SHELLS; do
if ! grep -q "^${_shell}\$" /etc/shells; then
echo "Adding '$_shell' to /etc/shells..."
echo "$_shell" | tee -a /etc/shells 1>/dev/null
fi
done