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