-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
instead of timelapse1090 being part of the image, just install it on image startup if the option is enabled this saves 12 MB image size
- Loading branch information
Showing
2 changed files
with
21 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/command/with-contenv bash | ||
# shellcheck shell=bash disable=SC1091,SC2015,SC2153 | ||
|
||
source /scripts/common | ||
|
||
if ! chk_enabled "${ENABLE_TIMELAPSE1090}" || chk_enabled "${TAR1090_DISABLE}"; then | ||
exit 0 | ||
fi | ||
|
||
if [[ -d "${GITPATH_TIMELAPSE1090}" ]]; then | ||
exit 0 | ||
fi | ||
|
||
# timelapse1090 | ||
git clone --single-branch --depth 1 "https://github.com/wiedehopf/timelapse1090.git" "${GITPATH_TIMELAPSE1090}" | ||
pushd "${GITPATH_TIMELAPSE1090}" | ||
bash -ec 'echo "timelapse1090 $(git log | head -1 | tr -s " " "_")" >> /VERSIONS' | ||
# remove unused .git dir to slightly reduce image size | ||
rm -rf "${GITPATH_TIMELAPSE1090}/.git" | ||
popd | ||
mkdir -p /var/timelapse1090 |