summarylogtreecommitdiffstats
path: root/open-vm-tools-git.install
blob: 8e22e5801c6b1f945ea21894f99602527c1ab0d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
post_install() {
    echo "==> Enabling VMware Tools services..."
    systemctl enable vmtoolsd.service
    systemctl enable vmware-vmblock-fuse.service
    
    echo "==> Starting VMware Tools services..."
    systemctl start vmtoolsd.service
    systemctl start vmware-vmblock-fuse.service
    
    echo ""
    echo "VMware Tools services have been enabled and started."
    echo ""
}

post_upgrade() {
    echo "==> Restarting VMware Tools services..."
    systemctl daemon-reload
    systemctl restart vmtoolsd.service
    systemctl restart vmware-vmblock-fuse.service
}

pre_remove() {
    echo "==> Stopping and disabling VMware Tools services..."
    systemctl stop vmtoolsd.service
    systemctl stop vmware-vmblock-fuse.service
    systemctl disable vmtoolsd.service
    systemctl disable vmware-vmblock-fuse.service
}