Browse Source

scripts: sysinit: accept apt questions

Do not interactively request confirmation of packet installations
Jonathan Golder 8 months ago
parent
commit
b5ebab9977
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      scripts/sysinit.sh

+ 2
- 2
scripts/sysinit.sh View File

@@ -29,7 +29,7 @@ AUTHKEYFILE="${HOME}/.ssh/authorized_keys"
29 29
 
30 30
 # Install ssh-server
31 31
 sudo apt-get update
32
-sudo apt-get install openssh-server
32
+sudo apt-get -y install openssh-server
33 33
 
34 34
 # Configure public key
35 35
 # Make sure user's ssh config dir exist
@@ -43,5 +43,5 @@ if [[ ! -f "$AUTHKEYFILE"  ]] || ! grep -q "$KEY" "$AUTHKEYFILE"; then
43 43
 fi
44 44
 
45 45
 # Install spice-vdagent
46
-sudo apt-get install spice-vdagent
46
+sudo apt-get -y install spice-vdagent
47 47