Skip to content

Commit ed3fc51

Browse files
committed
fix(examples): run apt-get update before installing packages
1 parent 1ef28cc commit ed3fc51

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

examples/create_and_restore_backup.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ To have something to backup, we will install a nginx server and configure a non-
3131
```sh filename=configure-nginx.sh
3232
#!/bin/sh -xe
3333

34-
apt install nginx -y
34+
apt-get update
35+
apt-get install nginx -y
3536
echo "Hello from $(hostname)"'!' > /var/www/html/index.html
3637
```
3738

examples/use_userdata_to_configure_server.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ First, create a file for the user-data script. The script installs [podman](http
1313

1414
```sh filename=user-data.sh
1515
#!/bin/sh
16-
sudo apt install -y podman
16+
sudo apt-get update
17+
sudo apt-get install -y podman
1718
podman run -d -p 80:80 ghcr.io/upcloudltd/hello
1819
```
1920

0 commit comments

Comments
 (0)