bundle agent finalize { # These are the last steps of an installation / upgrade. # Moved from other bundles to this last one in the sequence to get the right # execution order. vars: "default_arch" string => ifelse("x86_64", "amd64", "i686", "i386", $(sys.arch)); files: # Add the language chooser to the lightdm-greeter panel. debian.lightdm.installation:: "/usr/share/lightdm/lightdm-gtk-greeter.conf.d/02debian-edu.conf" link_from => ln_s("/usr/share/debian-edu-config/lightdm-gtk-greeter.conf"), move_obstructions => "true"; # Use XDG to restructure education menus (cascading category style). This # more general approach is needed because otherwise the user is prompted to # set up the LXQt session manually (x-window-manager, panel config) now that # lxqt depends on the 'lxqt-branding-debian' package. debian.installation:: "/etc/xdg/menus/applications-merged" link_from => ln_s("/usr/share/debian-edu/menu/menus/applications-merged"), move_obstructions => "true"; "/etc/xdg/menus/gnome-applications.menu" link_from => ln_s("/usr/share/debian-edu/menu/menus/gnome-applications.menu"), move_obstructions => "true"; "/etc/xdg/menus/kf5-applications.menu" link_from => ln_s("/usr/share/debian-edu/menu/menus/kf5-applications.menu"), move_obstructions => "true"; "/etc/xdg/menus/lxde-applications.menu" link_from => ln_s("/usr/share/debian-edu/menu/menus/lxde-applications.menu"), move_obstructions => "true"; "/etc/xdg/menus/lxqt-applications.menu" link_from => ln_s("/usr/share/debian-edu/menu/menus/lxqt-applications.menu"), move_obstructions => "true"; "/etc/xdg/menus/mate-applications.menu" link_from => ln_s("/usr/share/debian-edu/menu/menus/mate-applications.menu"), move_obstructions => "true"; "/etc/xdg/menus/xfce-applications.menu" link_from => ln_s("/usr/share/debian-edu/menu/menus/xfce-applications.menu"), move_obstructions => "true"; commands: debian.server.installation:: "/usr/share/debian-edu-config/tools/exim4-create-environment" contain => in_shell; "/usr/sbin/dpkg-reconfigure sitesummary" contain => in_shell; "/usr/sbin/exim4 -qff" contain => in_shell; # Enable localization for desktop applications like The GIMP and Thunderbird. # Also, the language/country related debian-edu-doc package is installed. debian.(desktopintern|standalone).installation:: "/usr/share/debian-edu-config/tools/install-task-pkgs" contain => in_shell; "/usr/share/debian-edu-config/tools/improve-desktop-l10n" contain => in_shell; # Update /etc/environment and APT configuration using wpad.dat file. # Do it late to make sure scripts like debian-edu-pxeinstall do not get # the wrong proxy setting when installing a main-server and the webcache # proxy isn't up yet. debian.!server.!standalone:: "/usr/share/debian-edu-config/tools/update-proxy-from-wpad" contain => in_shell; debian.server.installation:: "/usr/share/debian-edu-config/tools/update-proxy-from-wpad file\:///etc/debian-edu/www/wpad.dat" contain => in_shell; # Activate changes to pam-configs in /etc/pam.d/ debian.!standalone.installation:: "/usr/sbin/pam-auth-update --package" contain => in_shell; # Adjust certificate rights to make them accessible. debian.server.installation:: "/bin/chmod 0644 /etc/debian-edu/www/Debian-Edu_rootCA.crt" contain => in_shell; # Make sure connman is replaced with network-manager-gnome in case lxqt is # used during an installation with Main server or LTSP server profile to avoid # broken network setup. debian.(server|ltspserver).lxqt.di.installation:: "/usr/bin/apt-get install -y network-manager-gnome" contain => in_shell; "/usr/bin/apt-get purge -y connman" contain => in_shell; } bundle agent editline_finalize { vars: "menu" string => "MENUREORDER=true"; files: # Enable our menu overrides also on standalone installations debian.standalone.installation:: "/etc/debian-edu/config" create => "true", edit_line => append_if_no_line("$(menu)"); }