Skip to content

Commit 806c32e

Browse files
Merge pull request #10 from obscureorganization/fix-tiamat-provisioning-2024
Add more packages, fix mail provisioning
2 parents b414426 + f0489fc commit 806c32e

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

mail-symlink-inbox.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ set -euo pipefail
44

55
DEBUG=${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/
1619
cd /home
1720
find . -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
3034
done
35+
exit 0

tiamat-install.sh

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ fi
2121

2222
config_network=true
2323
primary_int=enp89s0
24-
primary_int=$primary_int
2524

2625
packages='
2726
bind
@@ -31,6 +30,7 @@ certbot
3130
certbot python3-certbot-apache
3231
clamav
3332
cmake
33+
dnf-automatic
3434
dovecot
3535
doxygen
3636
emacs
@@ -85,7 +85,10 @@ whois
8585
'
8686

8787
extra_packages='
88-
alpine'
88+
alpine
89+
ntfs-3g
90+
shellcheck
91+
tidy'
8992

9093
firewall_services_allow='
9194
dns
@@ -112,7 +115,15 @@ dnf -y install $packages
112115
#shellcheck disable=SC2086
113116
dnf -y install $extra_packages
114117

118+
# Install ledger (built from SRPMS)
115119
dnf -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

118129
if "$config_network"; then

0 commit comments

Comments
 (0)