mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-22 13:22:28 +00:00
chore: formatting
This commit is contained in:
parent
e9aa592702
commit
2891ccdd3a
|
@ -55,7 +55,7 @@ setupLibvirt() {
|
||||||
"$ESCALATION_TOOL" usermod "$USER" -aG libvirt
|
"$ESCALATION_TOOL" usermod "$USER" -aG libvirt
|
||||||
|
|
||||||
for value in libvirt libvirt_guest; do
|
for value in libvirt libvirt_guest; do
|
||||||
if ! grep -wq "$value" /etc/nsswitch.conf;then
|
if ! grep -wq "$value" /etc/nsswitch.conf; then
|
||||||
"$ESCALATION_TOOL" sed -i "/^hosts:/ s/$/ ${value}/" /etc/nsswitch.conf
|
"$ESCALATION_TOOL" sed -i "/^hosts:/ s/$/ ${value}/" /etc/nsswitch.conf
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
@ -70,7 +70,7 @@ installLibvirt() {
|
||||||
if ! command_exists libvirtd; then
|
if ! command_exists libvirtd; then
|
||||||
"$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm libvirt dmidecode
|
"$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm libvirt dmidecode
|
||||||
else
|
else
|
||||||
printf "%b\n" "${GREEN}Libvirt is already installed.${RC}"
|
printf "%b\n" "${GREEN}Libvirt is already installed.${RC}"
|
||||||
fi
|
fi
|
||||||
setupLibvirt
|
setupLibvirt
|
||||||
}
|
}
|
||||||
|
@ -85,16 +85,17 @@ main() {
|
||||||
printf "%b" "Enter your choice [1-5]: "
|
printf "%b" "Enter your choice [1-5]: "
|
||||||
read -r CHOICE
|
read -r CHOICE
|
||||||
case "$CHOICE" in
|
case "$CHOICE" in
|
||||||
1) installQEMUDesktop ;;
|
1) installQEMUDesktop ;;
|
||||||
2) installQEMUEmulators ;;
|
2) installQEMUEmulators ;;
|
||||||
3) installLibvirt ;;
|
3) installLibvirt ;;
|
||||||
4) installVirtManager ;;
|
4) installVirtManager ;;
|
||||||
5) installQEMUDesktop
|
5)
|
||||||
installQEMUEmulators
|
installQEMUDesktop
|
||||||
installLibvirt
|
installQEMUEmulators
|
||||||
installVirtManager
|
installLibvirt
|
||||||
|
installVirtManager
|
||||||
;;
|
;;
|
||||||
*) printf "%b\n" "${RED}Invalid choice.${RC}" && exit 1 ;;
|
*) printf "%b\n" "${RED}Invalid choice.${RC}" && exit 1 ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user