Skip to content

Commit a0b80d4

Browse files
committed
docker/dist: make SASL XOAUTH2 work with rockylinux9
1 parent 0b59843 commit a0b80d4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

docker/dist/all.sh

+8-1
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,16 @@ sudo chown `id -un` ~/local
113113
cp $sasl_libdir/sasl2/gfarm*.conf ~/local
114114
gfarm-prun -p sudo cp local/gfarm*.conf $sasl_libdir/sasl2
115115
rm ~/local/gfarm*.conf
116+
117+
# create empty sasldb2 database,
118+
# because the gdbm backend of Cyrus SAL (e.g. on RHEL9) needs this
119+
# although the berkeley DB backend does NOT
120+
gfarm-prun -p -a "sudo saslpasswd2 -d -u NOT-EXIST NOT-EXIST"
121+
116122
# XXX - SASL XOAUTH2 fails in gfsd on ubuntu due to the error
117123
# "unable to open Berkeley db /etc/sasldb2: Permission denied"
118-
gfarm-prun -p -a "sudo chown _gfarmfs /etc/sasldb2 > /dev/null 2>&1"
124+
gfarm-prun -p -a \
125+
"sudo chown _gfarmfs /etc/sasldb2 /etc/sasl2/sasldb2 > /dev/null 2>&1"
119126

120127
# set up certificates
121128
sh ./key.sh

0 commit comments

Comments
 (0)