From: Frank Brehm Date: Wed, 28 Mar 2018 14:28:57 +0000 (+0200) Subject: Implementing install_openvm_tools and dist_upgrade in bin/postinst X-Git-Tag: 0.1.1~74 X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=2af880bd036526c8fada2063da2e92cd630e94f2;p=pixelpark%2Fcreate-vmware-tpl.git Implementing install_openvm_tools and dist_upgrade in bin/postinst --- diff --git a/bin/postinst b/bin/postinst index fb39e04..f2e1b48 100644 --- a/bin/postinst +++ b/bin/postinst @@ -354,6 +354,10 @@ make_pp_dirs() { misc_packages() { local misc_pkgs="ksh tmux vim telnet curl" + local misc_pkgs_remove="deltarpm nfs* rpcbind abrt*" + + echo "Disabling mysql-community in /etc/yum.conf ..." + echo "exclude=mysql-community*" >> /etc/yum.conf echo log "Installing NetworkManager ..." @@ -376,6 +380,14 @@ misc_packages() { log "Installing packages: ${misc_pkgs}" yum install -y ${misc_pkgs} + echo + log "Removing packages mysql-community* ..." + yum remove -y mysql-community* + + echo + log "Removing packages: ${misc_pkgs_remove}" + yum remove -y ${misc_pkgs_remove} + } #----------------------------------------------------------- @@ -459,6 +471,32 @@ install_ntp() { } +#----------------------------------------------------------- +install_openvm_tools() { + + echo + log "Installing open-vm-tools ..." + + yum install -y open-vm-tools + + echo "Enabling vmware-tools and vmtoolsd ..." + systemctl enable vmware-tools + systemctl enable vmtoolsd + + vmware-toolbox-cmd timesync disable + +} + +#----------------------------------------------------------- +dist_upgrade() { + + echo + log "Upgrading all packages ..." + echo + yum upgrade -y + +} + #----------------------------------------------------------- main() { @@ -477,6 +515,8 @@ main() { create_motd install_legato_networker install_ntp + install_openvm_tools + dist_upgrade tweak_grub