Commit 79127718 authored by Igor Pecovnik's avatar Igor Pecovnik
Browse files

Add Office and thunderbird install/deinstall

parent 390c7cdb
...@@ -806,6 +806,26 @@ function jobs () ...@@ -806,6 +806,26 @@ function jobs ()
fi fi
;; ;;
"Thunderbird" )
if ! check_if_installed thunderbird then ; then
debconf-apt-progress -- apt-get -y install thunderbird
else
debconf-apt-progress -- apt-get -y purge thunderbird
fi
;;
"Libre" )
debconf-apt-progress -- apt-get -y purge libreoffice*
;;
"Writer" )
debconf-apt-progress -- apt-get -y install libreoffice-writer libreoffice-style-tango libreoffice-gtk
;;
"Suite" )
debconf-apt-progress -- apt-get -y install libreoffice libreoffice-style-tango libreoffice-gtk
;;
# Stop low-level messages on console # Stop low-level messages on console
# #
......
...@@ -304,6 +304,22 @@ while true; do ...@@ -304,6 +304,22 @@ while true; do
else else
LIST+=( "RDP" "Enable remote desktop access from Windows" ) LIST+=( "RDP" "Enable remote desktop access from Windows" )
fi fi
if ! check_if_installed thunderbird then ; then
LIST+=( "Thunderbird" "Install full featured email client" )
else
LIST+=( "Thunderbird" "Remove full featured email client" )
fi
if ! check_if_installed libreoffice-writer then ; then
LIST+=( "Writer" "Libreoffice: Writer only" )
LIST+=( "Suite" "Libreoffice: Full suite" )
else
if ! check_if_installed libreoffice-base then ; then
LIST+=( "Suite" "Libreoffice: Full suite" )
LIST+=( "Libre" "Remove Libre office packages" )
else
LIST+=( "Libre" "Remove Libre office packages" )
fi
fi
fi fi
# count number of menu items to adjust window sizee # count number of menu items to adjust window sizee
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment