Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117878516
init.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
init.sh
View Options
#!/bin/bash
sed -i -r
\
-e
"s|IMAP_ADMIN_LOGIN|
$IMAP_ADMIN_LOGIN
|g"
\
-e
"s|IMAP_ADMIN_PASSWORD|
$IMAP_ADMIN_PASSWORD
|g"
\
/etc/imapd.conf
sed -i -r
\
-e
"s|APP_SERVICES_DOMAIN|
$APP_SERVICES_DOMAIN
|g"
\
-e
"s|SERVICES_PORT|
$SERVICES_PORT
|g"
\
/etc/saslauthd.conf
mkdir -p /var/lib/imap/socket
mkdir -p /var/lib/imap/db
cat
${
SSL_CERTIFICATE
}
${
SSL_CERTIFICATE_FULLCHAIN
}
${
SSL_CERTIFICATE_KEY
}
> /etc/pki/cyrus-imapd/cyrus-imapd.bundle.pem
chown
1001
:0 /etc/pki/cyrus-imapd/cyrus-imapd.bundle.pem
/usr/sbin/saslauthd -m /run/saslauthd -a httpform -d
&
# Can't run as user because of /dev/ permissions so far.
# Cyrus imap only logs to /dev/log, no way around it it seems.
# sudo rsyslogd
# Cyrus needs an entry in /etc/passwd. THe alternative would be perhaps the nss_wrapper
# https://docs.openshift.com/container-platform/3.11/creating_images/guidelines.html#openshift-specific-guidelines
# FIXME: This probably currently just works because we make /etc/ writable, which I suppose we shouldn't.
ID
=
$(
id -u
)
GID
=
$(
id -g
)
echo
"
$ID
:x:
$ID
:
$GID
::/opt/app-root/:/bin/bash"
> /etc/passwd
exec
env
CYRUS_VERBOSE
=
1
CYRUS_USER
=
"
$ID
"
/usr/libexec/master -D -p /var/run/master.pid -M /etc/cyrus.conf -C /etc/imapd.conf
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Sun, Apr 5, 10:17 PM (2 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18831396
Default Alt Text
init.sh (1 KB)
Attached To
Mode
rK kolab
Attached
Detach File
Event Timeline