Skip to content

Commit 980bcad

Browse files
committed
Fixed failing tests
1 parent 4065a76 commit 980bcad

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/test_user_data.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
2-
sudo apt-get -y update
2+
3+
# Update package list and install required packages
4+
sudo apt-get update
35
sudo apt-get install -y ca-certificates tinyproxy
46

57
# Configure tinyproxy
@@ -31,6 +33,9 @@ sudo ufw allow 22/tcp
3133
sudo ufw allow 8899/tcp
3234
sudo ufw --force enable
3335

34-
# Start service
36+
# Enable and start service
3537
sudo systemctl enable tinyproxy
3638
sudo systemctl restart tinyproxy
39+
40+
# Wait for service to start
41+
sleep 5

0 commit comments

Comments
 (0)