Added post_install.sh and post_remove.sh scripts

This commit is contained in:
CapCreeperGR
2024-07-08 11:58:10 +00:00
parent dc562e4739
commit 3f84cdab7f
3 changed files with 15 additions and 0 deletions
+1
View File
@@ -4,4 +4,5 @@ version: 5.2.21
url: https://www.gnu.org/software/bash/
license: GPL3-or-later
architecture: any
keep: etc/bashrc,etc/profile
type: source
+7
View File
@@ -0,0 +1,7 @@
#!/bin/bash
SHELL="/bin/bash"
if ! grep "${SHELL}" "$BPM_ROOT"/etc/shells; then
echo "${SHELL}" | tee -a "$BPM_ROOT"/etc/shells
fi
+7
View File
@@ -0,0 +1,7 @@
#!/bin/bash
SHELL="/bin/bash"
if grep "${SHELL}" "$BPM_ROOT"/etc/shells; then
sed -i "s|${SHELL}|d" "$BPM_ROOT"/etc/shells
fi