home · contact · privacy
Fix master
authorChristian Heller <c.heller@plomlompom.de>
Wed, 23 Apr 2025 13:02:30 +0000 (15:02 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 23 Apr 2025 13:02:30 +0000 (15:02 +0200)
bookworm/scripts/lib/init_packages
bookworm/scripts/setup_server.sh
trixie/aptmark [deleted symlink]
trixie/aptmark/all [new symlink]
trixie/aptmark/catgirl [new symlink]
trixie/aptmark/seedbox [new symlink]
trixie/aptmark/server [new file with mode: 0644]

index 12a01c361446835f30f8a9caa476bf2d9ccf1fae..6ed30a0fdd59bfe4872248d010399e651a472a40 100644 (file)
@@ -10,10 +10,10 @@ init_packages() {
     _PATH_LIST_WHITE="${_PATH_LIST_PREFIX}white"
     _PATH_LIST_BLACK="${_PATH_LIST_PREFIX}black"
     _TOK_REQ=' required'
-    dpkg-query -Wf '${Package} ${Priority}\n' | grep "${_TOK_REQ}" | sed "s/${_TOK_REQ}//" > "${_PATH_LIST_UNSORTED}"
-    sort "${_PATH_LIST_UNSORTED}" | uniq > "${_PATH_LIST_WHITE}"
+    dpkg-query -Wf '${Package} ${Priority}\n' | grep "${_TOK_REQ}" | cut -d' ' -f1 > "${_PATH_LIST_UNSORTED}"
+    sort "${_PATH_LIST_UNSORTED}" > "${_PATH_LIST_WHITE}"
     dpkg-query -Wf '${Package}\n' > "${_PATH_LIST_UNSORTED}"
-    sort "${_PATH_LIST_UNSORTED}" | uniq > "${_PATH_LIST_ALL_PACKAGES}"
+    sort "${_PATH_LIST_UNSORTED}" > "${_PATH_LIST_ALL_PACKAGES}"
     comm -3 "${_PATH_LIST_ALL_PACKAGES}" "${_PATH_LIST_WHITE}" > "${_PATH_LIST_BLACK}"
     apt-mark auto `cat "${_PATH_LIST_BLACK}"` > /dev/null
     rm "${_PATH_LIST_UNSORTED}" "${_PATH_LIST_ALL_PACKAGES}" "${_PATH_LIST_WHITE}" "${_PATH_LIST_BLACK}"
index e5ac4fa699ae23eb9fc58045872ad5ca265364ce..6597c649c7c02849b2fc45e6acd16d5e0baca13b 100755 (executable)
@@ -11,7 +11,7 @@ cd $(dirname "$0")
 . lib/setup_user
 . lib/set_hostname_and_hosts
 
-INSTALL_TAGS='all server caddy'
+INSTALL_TAGS='all server'
 
 expect_n_args 2 3 'CADDY_PASSWORD, HOSTNAME, [FQDN]' $@
 CADDY_PASSWORD="$1"
diff --git a/trixie/aptmark b/trixie/aptmark
deleted file mode 120000 (symlink)
index 8e3a4c4..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../bookworm/aptmark
\ No newline at end of file
diff --git a/trixie/aptmark/all b/trixie/aptmark/all
new file mode 120000 (symlink)
index 0000000..1913f5e
--- /dev/null
@@ -0,0 +1 @@
+../../bookworm/aptmark/all
\ No newline at end of file
diff --git a/trixie/aptmark/catgirl b/trixie/aptmark/catgirl
new file mode 120000 (symlink)
index 0000000..3e1bdbd
--- /dev/null
@@ -0,0 +1 @@
+../../bookworm/aptmark/catgirl
\ No newline at end of file
diff --git a/trixie/aptmark/seedbox b/trixie/aptmark/seedbox
new file mode 120000 (symlink)
index 0000000..7fe9582
--- /dev/null
@@ -0,0 +1 @@
+../../bookworm/aptmark/seedbox
\ No newline at end of file
diff --git a/trixie/aptmark/server b/trixie/aptmark/server
new file mode 100644 (file)
index 0000000..87e4111
--- /dev/null
@@ -0,0 +1,11 @@
+# so we can log in at all …
+openssh-server
+# necessary for DNS to work
+systemd-resolved
+# firewalling
+nftables
+# so every server can store borg backups
+borgbackup
+# so every server can serve some webspace 
+caddy
+#