Skip to content

Commit f526ecf

Browse files
authored
install guest tools
1 parent 05c3c35 commit f526ecf

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

wordpress_install.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,15 @@ apt -y purge expect
249249
run_script STATIC new_etc_mycnf
250250

251251
# Install VM-tools
252-
install_if_not open-vm-tools
252+
if [ "$SYSVENDOR" == "VMware, Inc." ];
253+
then
254+
install_if_not open-vm-tools
255+
elif [[ "$SYSVENDOR" == "QEMU" || "$SYSVENDOR" == "Red Hat" ]];
256+
then
257+
install_if_not qemu-guest-agent
258+
systemctl enable qemu-guest-agent
259+
systemctl start qemu-guest-agent
260+
fi
253261

254262
# Install Nginx
255263
check_command yes | add-apt-repository ppa:ondrej/nginx

0 commit comments

Comments
 (0)