debian: force shell to be bash since its default is dash and many qubes scripts rely on bash and will break in dash and added tinyproxy user

This commit is contained in:
Jason Mehring 2014-11-02 16:28:50 -05:00
부모 ef787ce40b
커밋 be37c6cc5b
2개의 변경된 파일21개의 추가작업 그리고 0개의 파일을 삭제

10
debian/postinst vendored
파일 보기

@ -34,6 +34,16 @@ case "$1" in
fi
}
# Stops Qt form using the MIT-SHM X11 Shared Memory Extension
echo 'export QT_X11_NO_MITSHM=1' >> /etc/profile
# Sudo's defualt umask is 077 so set sane default of 022
# Also don't allow QT to used shared memory to prevent errors
echo 'Defaults umask = 0002' >> /etc/sudoers
echo 'Defaults umask_override' >> /etc/sudoers
echo 'Defaults env_keep += "QT_X11_NO_MITSHM"' >> /etc/sudoers
# reenable abrt-aplet if disable by some earlier version of package
remove_ShowIn abrt-applet.desktop

11
debian/preinst vendored
파일 보기

@ -45,6 +45,13 @@ if [ "$1" = "install" ] ; then
mv /etc/fstab /var/lib/qubes/fstab.orig
fi
# --------------------------------------------------------------------------
# Many Qubes scripts reference /bin/sh expecting the shell to be bash but
# in Debian it is dash so some scripts will fail so force an alternate for
# /bin/sh to be /bin/bash
# --------------------------------------------------------------------------
update-alternatives --force --install /bin/sh sh /bin/bash 999
# --------------------------------------------------------------------------
# Modules setup
# --------------------------------------------------------------------------
@ -82,6 +89,10 @@ EOF
groupadd -f user
useradd -g user -G dialout,cdrom,floppy,sudo,audio,dip,video,plugdev -m -s /bin/bash user
}
id -u 'tinyproxy' || {
groupadd -f tinyproxy
useradd -g tinyproxy -M --home /run/tinyproxy --shell /bin/false tinyproxy
}
usermod -p '' root
usermod -L user
exit 0