PortValhalla/scripts/Common/Software/virt-manager/main.fish

22 lines
475 B
Fish
Raw Normal View History

#!/bin/env fish
begin
set -l dir (status dirname)
2024-11-01 12:12:16 +00:00
source "$dir/../../../lib/software.fish"
function configureSW
begin
2024-10-06 19:25:34 +00:00
sudo virsh net-info default | grep "^Active:\s*yes\$" >/dev/null
end || sudo virsh net-start default
and sudo virsh net-autostart default
or true
end
function userConfig
argparse -i "user=" -- $argv
sudo usermod -aG libvirt "$_flag_user"
end
runInstaller $argv
end