Skip to content

Commit

Permalink
Fail installation for non-container device (#85)
Browse files Browse the repository at this point in the history
Co-authored-by: Madelen Andersson <[email protected]>
Co-authored-by: madelen-at-work <[email protected]>
  • Loading branch information
3 people authored Apr 8, 2024
1 parent 7ac89a4 commit 7d8d471
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/postinstallscript.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/bin/sh
#!/bin/sh -e

if [ ! -e /usr/bin/containerd ]; then
logger -p user.warn "$0: Container support required to install application."
exit 77 # EX_NOPERM
fi

# Move the daemon.json file into localdata folder
if [ ! -e localdata/daemon.json ]; then
Expand Down

0 comments on commit 7d8d471

Please sign in to comment.