Skip to content

Commit 4018c70

Browse files
committed
Fixes for bookworm
1 parent 7f30316 commit 4018c70

File tree

10 files changed

+26
-23
lines changed

10 files changed

+26
-23
lines changed

debian-setup/debian-setup.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
#
3-
# Debian bullseye setup on a virtual server.
3+
# Debian GNU/Linux setup on a virtual server.
44
#
55
# VERSION :3.0.0
66
# URL :https://github.com/szepeviktor/debian-server-tools
@@ -82,8 +82,8 @@
8282
export IMAGE_ARCH="amd64"
8383
export IMAGE_MACHINE="x86_64"
8484
export IMAGE_ID="Debian"
85-
export IMAGE_CODENAME="bullseye"
86-
#export IMAGE_CODENAME="bookworm"
85+
export IMAGE_CODENAME="bookworm"
86+
#export IMAGE_CODENAME="trixie"
8787

8888
# "A real danger for the future of GNU/Linux"
8989
# https://skarnet.org/software/s6/systemd.html

debian-setup/debian-setup2.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
#
3-
# Continue Debian bullseye setup on a virtual server.
3+
# Continue Debian GNU/Linux setup on a virtual server.
44
#
55
# VERSION :3.0.0
66
# URL :https://github.com/szepeviktor/debian-server-tools
@@ -55,9 +55,9 @@ packages/s-nail
5555
packages/goaccess
5656

5757
# From backports
58-
# List available backports: apt-get upgrade -t bullseye-backports
58+
# List available backports: apt-get upgrade -t bookworm-backports
5959
# @nonDebian
60-
##Pkg_install_quiet -t bullseye-backports
60+
##Pkg_install_quiet -t bookworm-backports
6161

6262
packages/needrestart
6363

debian-setup/packages/libpam-modules

+6-4
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,18 @@ sed -i -e 's|^\(password\t\+requisite\t\+pam_cracklib\.so\).\+$|\1 retry=3 difok
1111
/etc/pam.d/common-password
1212

1313
# Nice welcome screen
14-
# @FIXME Python 2 does not handle UTF-8 in YAML
1514
printf '*\n*** %s ***\n*\n\n' "$(Data get-value system.trespass-warning)" >/etc/motd.tail
1615

17-
Data get-value system.host-color "7" > /etc/hostcolor
16+
Data get-value system.host-color "7" >/etc/hostcolor
1817

1918
if [ -d /etc/update-motd.d ]; then
20-
# Remove default uname script
19+
# Remove default uname scripts
2120
if [ -f /etc/update-motd.d/10-uname ] && [ "$(stat -c "%s" /etc/update-motd.d/10-uname)" == 23 ]; then
2221
rm /etc/update-motd.d/10-uname
2322
fi
23+
if [ -f /etc/update-motd.d/92-unattended-upgrades ] && [ "$(stat -c "%s" /etc/update-motd.d/92-unattended-upgrades)" == 165 ]; then
24+
rm /etc/update-motd.d/92-unattended-upgrades
25+
fi
2426
# Halt on non-empty script directory
2527
test -z "$(find /etc/update-motd.d/ -type f -prune)"
2628
else
@@ -31,7 +33,7 @@ fi
3133
mv /etc/motd "/etc/motd~"
3234

3335
# Make motd a symlink
34-
ln -sf /var/run/motd /etc/motd
36+
ln -s -f /var/run/motd /etc/motd
3537

3638
# Install scripts
3739
Dinstall input/update-motd.d/00-header

debian-setup/packages/redis-server

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
set -e -x
44

5-
# @TODO move to v4.0 in stretch-backports
5+
# @TODO Migrate to Valkey
66

7-
# @TODO Prevent shutdown during background saving
7+
# Prevent shutdown during background saving
88
cat >/etc/sysctl.d/redis-overcommit.conf <<"EOF"
99
# https://redis.io/topics/faq#background-saving-fails-with-a-fork-error-under-linux-even-if-i-have-a-lot-of-free-ram
1010
#vm.overcommit_memory = 1
1111
EOF
1212

13-
# @TODO Allow high backlog
13+
# Allow high backlog
1414
cat >/etc/sysctl.d/redis-tcp-listen-backlog.conf <<"EOF"
1515
# https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt
1616
##net.ipv4.tcp_max_syn_backlog = 512

debian-setup/server.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
system:
55
fqdn: ##host.example.com
66
uuid: ##/usr/sbin/dmidecode -s system-uuid | tr '[:upper:]' '[:lower:]'
7-
os: "Debian ‘bullseye"
7+
os: "Debian ‘bookworm"
88
install-date: ##YYYY-MM-DD
99
# tput sgr0;for C in {1..7};do tput setaf $C;echo -n "■${C}■ ";tput sgr0;done;echo
1010
host-color: 7
@@ -185,8 +185,8 @@ packaging:
185185
list-command: gem list
186186
location: /usr/lib/ruby/vendor_ruby
187187

188-
# shyaml get-values bullseye-backports </root/server.yml | xargs -- apt-get install -t bullseye-backports # -y
189-
bullseye-backports:
188+
# shyaml get-values bookworm-backports </root/server.yml | xargs -- apt-get install -t bookworm-backports # -y
189+
bookworm-backports:
190190
- init-system-helpers
191191
- needrestart
192192
- geoipupdate

package/apt-sources/goaccess.list

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Goaccess
2-
deb http://deb.goaccess.io/ bullseye main
2+
deb http://deb.goaccess.io/ bookworm main
33
#K: wget -qO- https://deb.goaccess.io/goaccess.gpg.key >/etc/apt/trusted.gpg.d/goaccess.gpg
44
#M: https://goaccess.io/download#distro

package/apt-sources/sury-php.list

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# DEB.SURY.ORG (is in CZ)
2-
deb https://packages.sury.org/php/ bullseye main
2+
deb https://packages.sury.org/php/ bookworm main
33
#K: wget -qO/etc/apt/trusted.gpg.d/sury-php.gpg https://packages.sury.org/php/apt.gpg
44
#M: https://packages.sury.org/php/README.txt
55
#P: printf 'Package: openssl libssl-dev libssl-doc libssl1.1\nPin: origin "packages.sury.org"\nPin-Priority: -1\n' >/etc/apt/preferences.d/sury-openssl.pref

webserver/GitLab-CI-Runner.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ docker run --rm -i -t -v /opt:/etc/gitlab-runner gitlab/gitlab-runner:latest reg
88
# --url "https://gitlab.com/" \
99
# --registration-token "PROJECT-REGISTRATION-TOKEN" \
1010
# --executor "docker" \
11-
# --docker-image "php:7.4-bullseye" \
11+
# --docker-image "php:7.4-bookworm" \
1212
# --description "gitlab-runner on UpCloud" \
1313
# --tag-list "upcloud,docker" \
1414
# --run-untagged \

webserver/php-fpm.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ PHP_TZ="UTC"
2424
CWD="$(dirname "${BASH_SOURCE[0]}")"
2525

2626
# Later versions of Ondřej Surý's PHP-FPM "Depends: systemd | systemd-tmpfiles"
27-
Pkg_install_quiet systemd-standalone-tmpfiles/bullseye-backports
27+
Pkg_install_quiet systemd-standalone-tmpfiles/bookworm-backports
2828
# Alternative
29+
# @nonDebian
2930
#Pkg_install_quiet opentmpfiles
3031

3132
# @nonDebian

webserver/systemd-tmpfiles/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
Later versions of Ondřej Surý's PHP-FPM packages
44
[depend on `systemd`](https://github.com/oerdnj/deb.sury.org/issues/1347).
55

6-
`systemd-tmpfiles` provides one symlink to the `opentmpfiles` command.
6+
### Building with equivs
77

8-
### Building
8+
`systemd-tmpfiles` provides one symlink to the `opentmpfiles` command.
99

1010
1. Install [equivs version 2.1+](https://packages.debian.org/buster/equivs)
1111
1. Build the dummy package: `equivs-build systemd-tmpfiles`
1212

13-
### Installation
13+
### Installation with equivs
1414

1515
1. Install [opentmpfiles](https://packages.debian.org/sid/opentmpfiles)
1616
1. Install the dummy package: `dpkg -i ./systemd-tmpfiles_*_amd64.deb`

0 commit comments

Comments
 (0)