mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-12 05:14:48 +08:00
15 lines
304 B
Bash
15 lines
304 B
Bash
#!/bin/sh
|
|
|
|
post_install() {
|
|
# make git-shell a valid shell
|
|
if ! grep -qe '^/usr/bin/git-shell$' etc/shells; then
|
|
echo '/usr/bin/git-shell' >> etc/shells
|
|
fi
|
|
}
|
|
|
|
# do not modify user settings (shell) in post-upgrade function!
|
|
|
|
post_remove() {
|
|
sed -i -r '/^\/usr\/bin\/git-shell$/d' etc/shells
|
|
}
|