Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Option to skip interactive configuration in AppVM #61

Open
lkubb opened this issue Oct 9, 2021 · 0 comments
Open

Comments

@lkubb
Copy link

lkubb commented Oct 9, 2021

I'm trying to install qubes-vpn-support inside a salt state. Currently, I have to install it in the template and manually configure the AppVM when it first starts, write a wrapper script, use a slightly patched script or do everything in salt.

This is no big problem, but imho it would be nice to have the simple option to skip the interactive configuration inside an AppVM in the official version for cases like this.

diff --git a/files-main/qubes-vpn-setup b/files-main/qubes-vpn-setup
index ae78ae1..0cc5c4b 100755
--- a/files-main/qubes-vpn-setup
+++ b/files-main/qubes-vpn-setup
@@ -141,7 +141,9 @@ case "$1" in
         ln -s -f /rw/config/qubes-vpn-setup /usr/lib/qubes/qubes-vpn-setup
         ln -s -f /rw/config/qubes-vpn-ns /usr/lib/qubes/qubes-vpn-ns
         echo "copy complete."
-        do_userpass
+        if [[ -z "$2" || "$2" != "--noconfig" ]]; then
+            do_userpass
+        fi
         echo "Done!"

     else
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant