diff options
Diffstat (limited to 'INSTALL')
-rw-r--r-- | INSTALL/common.d/10_base | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/INSTALL/common.d/10_base b/INSTALL/common.d/10_base index e429e65..5cff36b 100644 --- a/INSTALL/common.d/10_base +++ b/INSTALL/common.d/10_base @@ -1,5 +1,16 @@ #!/bin/bash +# set bash as default shell for /bin/sh +diverter=$(dpkg-divert --listpackage /bin/sh) +[[ "$diverter" == "dash" ]] && { + # inspired by dash postinstall + dpkg-divert --package dash --remove /bin/sh + dpkg-divert --package bash --divert /bin/sh.distrib --add /bin/sh + [[ -e /bin/sh ]] && cp -dp /bin/sh /bin/sh.distrib + ln -sf bash /bin/sh.tmp + mv -f /bin/sh.tmp /bin/sh +} + # add backports and testing repositories echo "deb http://http.debian.net/debian jessie-backports main contrib" >>/etc/apt/sources.list |