mirror of
https://github.com/Matir/skel.git
synced 2026-05-26 13:35:42 -07:00
Add support for packages that require X.
Checks if xserver-xorg is installed to determine whether or not to install the 'X' family of packages.
This commit is contained in:
@@ -13,6 +13,8 @@ if [ ! -d $BASEDIR ] ; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
HAVE_X=`dpkg-query -s xserver-xorg | grep -c 'Status.*installed'`
|
||||
|
||||
function prerequisites {
|
||||
# Prerequisites require git
|
||||
if ! which git > /dev/null ; then
|
||||
@@ -158,6 +160,7 @@ function install_apt_pkgs {
|
||||
( echo "Can't run apt-get commands" >&2 && \
|
||||
return 1 )
|
||||
run_as_root apt-get -y install `cat ${BASEDIR}/packages`
|
||||
(( $HAVE_X )) && run_as_root apt-get -y install `cat ${BASEDIR}/packages.X`
|
||||
}
|
||||
|
||||
|
||||
|
||||
4
packages.X
Normal file
4
packages.X
Normal file
@@ -0,0 +1,4 @@
|
||||
fonts-inconsolata
|
||||
wireshark
|
||||
keepassx
|
||||
vim-gtk
|
||||
Reference in New Issue
Block a user