Skip to content

Commit

Permalink
images/openwrt: Ensure /var/log exists
Browse files Browse the repository at this point in the history
Package manager apk fails when installing packages because /var/log dir does not exist.

Signed-off-by: Din Music <[email protected]>
  • Loading branch information
MusicDin committed Nov 20, 2024
1 parent 85701ef commit b3d3dd1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions images/openwrt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,15 @@ actions:
architectures:
- amd64

- trigger: post-unpack
action: |
#!/bin/sh
# Ensure /var/log exists before running package manager.
# Otherwise, the command can fail due to missing directory.
mkdir -p /var/log
releases:
- snapshot

- trigger: post-files
action: |
#!/bin/sh
Expand Down

0 comments on commit b3d3dd1

Please sign in to comment.