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

Update APT formats supported operating systems #88

Merged
merged 4 commits into from
Dec 5, 2023

Conversation

sagepe
Copy link
Member

@sagepe sagepe commented Dec 4, 2023

This removes support for Stretch, Xenial and Bionic and adds support for Jammy and Bullseye.

It also updates the format used for APT source definitions to use the newer deb882 format, used by default in Bookworm and supported on the older systems, and at the same time removes the use of apt-key for managing signing keys as this is deprecated.

Fixes #87

bin/install-site.sh Outdated Show resolved Hide resolved
@sagepe sagepe self-assigned this Dec 4, 2023
Copy link
Member

@gbp gbp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few extra line which could be removed:

PRECISE_PACKAGES="$CONF_DIRECTORY/packages.ubuntu-precise"
SQUEEZE_PACKAGES="$CONF_DIRECTORY/packages.debian-squeeze"
&
# Otherwise, if this is Ubuntu, and there's a version specifically
# for precise, use that:
elif [ x"$DISTRIBUTION" = x"ubuntu" ] && [ -e "$PRECISE_PACKAGES" ]
then
PACKAGES_FILE="$PRECISE_PACKAGES"
# Otherwise, if this is Debian, and there's a version specifically
# for squeeze, use that:
elif [ x"$DISTRIBUTION" = x"debian" ] && [ -e "$SQUEEZE_PACKAGES" ]
then
PACKAGES_FILE="$SQUEEZE_PACKAGES"

Copy link
Member

@gbp gbp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

chown -R "$UNIX_USER"."$UNIX_USER" "$DIRECTORY"

Is generating a warning on Bookworm: chown: warning: '.' should be ':': ‘alaveteli.alaveteli’

@sagepe sagepe requested a review from gbp December 5, 2023 09:25
Copy link
Member

@gbp gbp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking good. I can build both Bookworm and Jammy boxes with minimal changes to the Alaveteli's install scripts now.

Rather than exiting altogether if we don't support a particular distro,
just print a notice message and continue.

See: #87
Add support for Jammy and Bookworm, remove support for Stretch, Xenial
and Bionic plus some traces of even older versions.

See: #87
This updates our APT source definitions to use the newer deb882 format
and renames `/etc/apt/sources.list` to `/etc/apt/sources.list.dist` if it
exists to avoid duplicate warnings when running commands.

In addition, this also removes the use of `apt-key` in favour of storing
the signing key for our repository in `/etc/apt/keyrings` (which will be
created if this doesn't exist) and pointing at that via `Signed-By` in
the sources, removing deprecation warnings from `apt-key`.

See: #87
Long ago, this became standard to allow for the use of `.` in group
names. As of more recent distributions this has started to generate
warnings.

See: #87
@sagepe sagepe force-pushed the supported-apt-distros branch from 21355ac to caadeeb Compare December 5, 2023 14:19
@sagepe sagepe merged commit caadeeb into master Dec 5, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Install script should warn rather than error for unsupported OS when setting up APT repositories
2 participants