Skip to content

Commit

Permalink
updates to readme (#6)
Browse files Browse the repository at this point in the history
* automatically find the user id

* remove extra # from command lines for ease of copy/paste

removed the leading # from some of the command lines to ease copy/paste

* remove reference to user ID

remove the reference to replacing user ID in the comment
  • Loading branch information
jasonblewis authored Jun 12, 2024
1 parent 742d836 commit ee47ef8
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,31 +41,32 @@ The containers and named volumes will be stored in `/var/lib/immich`.

Configure `subuid` and `subgid` for podman to be able to run as this user:
```
# cat >> /etc/subuid <<EOF
cat >> /etc/subuid <<EOF
immich:2000000:1000000
EOF
# cat >> /etc/subgid <<EOF
cat >> /etc/subgid <<EOF
immich:2000000:1000000
EOF
```

Copy these files into the user's `containers/systemd` directory:
```
# sudo -u immich mkdir -p ~immich/.config/containers/systemd/immich
# sudo -u immich cp -v *.image *.container *.pod immich.env ~immich/.config/containers/systemd/immich/
sudo -u immich mkdir -p ~immich/.config/containers/systemd/immich
sudo -u immich cp -v *.image *.container *.pod immich.env ~immich/.config/containers/systemd/immich/
```

Start the user session, make it persistent and start the pod (replace 998 with `immich` user ID):
Start the user session, make it persistent and start the pod:
```
# systemctl start user@998
# loginctl enable-linger immich
# systemctl --user -M immich@.host start immich-pod.service
systemctl start user@$(id -u immich)
loginctl enable-linger immich
systemctl --user -M immich@.host start immich-pod.service
```

Watch `journalctl` to see if the containers start successfully -
the first start can fail if downloading the images takes more than the default startup timeout:
```
# journalctl -f
journalctl -f
```

The containers should start on the next boot automatically.
Expand Down

0 comments on commit ee47ef8

Please sign in to comment.