Skip to content

Commit bac3b7d

Browse files
Merge pull request #417 from balena-os/add-entry-script
Add entry.sh wrapper script
2 parents b291e6b + 317d56c commit bac3b7d

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
FROM scratch
22

3+
# Copies the update scripts to the app subdirectory to allow for future use of
4+
# other subdirectories.
35
WORKDIR /app
6+
COPY ./entry.sh ./entry.sh
47
COPY ./upgrade-2.x.sh ./upgrade-2.x.sh

entry.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/sh
2+
3+
# Optional wrapper to execute a host OS update. This wrapper provides a fixed
4+
# entry point for Supervisor managed OS updates, allowing us to change the working
5+
# script as the host update process evolves without altering how the Supervisor
6+
# starts the update.
7+
#
8+
# Runs the working script in the current process with the arguments provided to
9+
# this script.
10+
exec ./upgrade-2.x.sh "$@"

0 commit comments

Comments
 (0)