-
Notifications
You must be signed in to change notification settings - Fork 25
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
Conversation
There was a problem hiding this 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:
Lines 404 to 405 in 2ff5594
PRECISE_PACKAGES="$CONF_DIRECTORY/packages.ubuntu-precise" | |
SQUEEZE_PACKAGES="$CONF_DIRECTORY/packages.debian-squeeze" |
Lines 421 to 430 in 2ff5594
# 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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 683 in 2ff5594
chown -R "$UNIX_USER"."$UNIX_USER" "$DIRECTORY" |
Is generating a warning on Bookworm: chown: warning: '.' should be ':': ‘alaveteli.alaveteli’
There was a problem hiding this 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
21355ac
to
caadeeb
Compare
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