File tree Expand file tree Collapse file tree 2 files changed +20
-4
lines changed
Expand file tree Collapse file tree 2 files changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ set -euo pipefail
44
55DEBUG=${DEBUG:- false}
66
7+ # Thanks https://stackoverflow.com/a/17805088
8+ $DEBUG && export PS4=' ${LINENO}: ' && set -x
9+
710# Symlink /home/user/mail/inbox to /var/spol/mail/inbox
811# This lets dovecot autodetect the ~/mail directory - needed
912# as part of the emergency migration to Obscure's new server.
@@ -15,8 +18,9 @@ DEBUG=${DEBUG:-false}
1518# https://doc.dovecot.org/configuration_manual/mail_location/
1619cd /home
1720find . -maxdepth 2 -type d -name mail | while read -r mailuser; do
18- user=$( cut -d/ -f1 <<< " $mailuser" )
19- $DEBUG && echo " $user "
21+ $DEBUG && echo -n " mailuser:$mailuser "
22+ user=$( cut -d/ -f2 <<< " $mailuser" )
23+ $DEBUG && echo " user:$user "
2024 mail=" /home/$user /mail"
2125 inboxlink=" $mail /inbox"
2226 varspool=" /var/spool/mail/$user "
@@ -28,3 +32,4 @@ find . -maxdepth 2 -type d -name mail | while read -r mailuser; do
2832 $DEBUG && echo " $user did not qualify"
2933 fi
3034done
35+ exit 0
Original file line number Diff line number Diff line change 2121
2222config_network=true
2323primary_int=enp89s0
24- primary_int=$primary_int
2524
2625packages='
2726bind
@@ -31,6 +30,7 @@ certbot
3130certbot python3-certbot-apache
3231clamav
3332cmake
33+ dnf-automatic
3434dovecot
3535doxygen
3636emacs
8585'
8686
8787extra_packages='
88- alpine'
88+ alpine
89+ ntfs-3g
90+ shellcheck
91+ tidy'
8992
9093firewall_services_allow='
9194dns
@@ -112,7 +115,15 @@ dnf -y install $packages
112115# shellcheck disable=SC2086
113116dnf -y install $extra_packages
114117
118+ # Install ledger (built from SRPMS)
115119dnf -y install " $DIR /rpmbuild/RPMS/x86_64/ledger-3.2.1-13.el9.x86_64.rpm"
120+
121+ # Configure dnf-automatic
122+ if [[ ! -f /etc/dnf/automatic.conf.dist ]]; then
123+ cp -a /etc/dnf/automatic.conf /etc/dnf/automatic.conf.dist
124+ fi
125+ sed -i
' ' -e
' s/[email protected] /[email protected] /' /etc/dnf/automatic.conf
126+
116127# Configure network
117128
118129if " $config_network " ; then
You can’t perform that action at this time.
0 commit comments