Update package scripts

This commit is contained in:
2026-04-03 18:52:46 +03:00
parent 168235e1aa
commit 61e2bbc2ee
4 changed files with 25 additions and 9 deletions
+7 -4
View File
@@ -1,7 +1,10 @@
#!/bin/sh
SHELL="/bin/dash"
SHELLS="/bin/dash /usr/bin/dash"
if ! grep "${SHELL}" "$BPM_ROOT"/etc/shells; then
echo "${SHELL}" | tee -a "$BPM_ROOT"/etc/shells
fi
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