Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixup some graphs1090 env vars #226

Merged
merged 1 commit into from
Sep 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions rootfs/etc/s6-overlay/startup.d/08-graphs1090-init
Original file line number Diff line number Diff line change
Expand Up @@ -135,30 +135,30 @@ fi

# Defines the width of the larger graphs.
if [[ -n "${GRAPHS1090_LARGE_WIDTH}" ]]; then
sed -i "s|lwidth=.*|lwidth=${GRAPHS1090_LARGE_WIDTH}|g" /etc/default/graphs1090
sed -i "s|^lwidth=.*|lwidth=${GRAPHS1090_LARGE_WIDTH}|g" /etc/default/graphs1090
else
sed -i "s|lwidth=.*|lwidth=1096|g" /etc/default/graphs1090
sed -i "s|^lwidth=.*|lwidth=1096|g" /etc/default/graphs1090
fi

# Defines the height of the larger graphs.
if [[ -n "${GRAPHS1090_LARGE_HEIGHT}" ]]; then
sed -i "s|lheight=.*|lheight=${GRAPHS1090_LARGE_HEIGHT}|g" /etc/default/graphs1090
sed -i "s|^lheight=.*|lheight=${GRAPHS1090_LARGE_HEIGHT}|g" /etc/default/graphs1090
else
sed -i "s|lheight=.*|lheight=235|g" /etc/default/graphs1090
sed -i "s|^lheight=.*|lheight=235|g" /etc/default/graphs1090
fi

# Defines the width of the smaller graphs.
if [[ -n "${GRAPHS1090_SMALL_WIDTH}" ]]; then
sed -i "s|lwidth=.*|lwidth=${GRAPHS1090_SMALL_WIDTH}|g" /etc/default/graphs1090
sed -i "s|^swidth=.*|swidth=${GRAPHS1090_SMALL_WIDTH}|g" /etc/default/graphs1090
else
sed -i "s|lwidth=.*|lwidth=1096|g" /etc/default/graphs1090
sed -i "s|^swidth=.*|swidth=619|g" /etc/default/graphs1090
fi

# Defines the height of the smaller graphs.
if [[ -n "${GRAPHS1090_SMALL_HEIGHT}" ]]; then
sed -i "s|lheight=.*|lheight=${GRAPHS1090_SMALL_HEIGHT}|g" /etc/default/graphs1090
sed -i "s|^sheight=.*|sheight=${GRAPHS1090_SMALL_HEIGHT}|g" /etc/default/graphs1090
else
sed -i "s|lheight=.*|lheight=235|g" /etc/default/graphs1090
sed -i "s|^sheight=.*|sheight=324|g" /etc/default/graphs1090
fi

# Sets disk device for graphs -- leave empty for default.
Expand Down