Skip to content

Instantly share code, notes, and snippets.

@tpokorra
Last active September 18, 2020 17:20
Show Gist options
  • Save tpokorra/7113076 to your computer and use it in GitHub Desktop.
Save tpokorra/7113076 to your computer and use it in GitHub Desktop.
install kolab on Debian
service kolab-server stop
service kolab-saslauthd stop
service cyrus-imapd stop
service dirsrv stop
service wallace stop
service apache2 stop
if [ -f /usr/sbin/remove-ds-admin ]
then
sed -i "s#/usr/lib/x86_64-linux-gnu/dirsrv/perl);#/usr/lib/x86_64-linux-gnu/dirsrv/perl);\nuse lib qw(/usr/lib/dirsrv/perl);#g" /usr/sbin/remove-ds-admin
/usr/sbin/remove-ds-admin -f -a -y
fi
apt-get remove 389\* cyrus-imapd\* postfix\* mysql-server\* roundcube\* pykolab\* kolab\* libkolab\* kolab-3\*
# TODO problem reinstall? /etc/kolab/kolab.conf is gone after reinstall?
# rm -Rf /etc/kolab/kolab.conf
echo "deleting files..."
rm -Rf \
/etc/postfix \
/etc/dirsrv/slapd-* \
/usr/lib64/dirsrv \
/usr/share/kolab-webadmin \
/usr/share/roundcubemail \
/usr/share/kolab-syncroton \
/usr/share/kolab \
/usr/share/dirsrv \
/usr/share/389-* \
/var/cache/dirsrv \
/var/log/kolab* \
/var/log/dirsrv \
/var/log/roundcube \
/var/log/maillog \
/var/lib/dirsrv \
/var/lib/imap \
/var/lib/kolab \
/var/lib/mysql \
/var/spool/imap \
/var/spool/postfix
cat > /etc/apt/sources.list.d/kolab.list <<FINISH
deb http://obs.kolabsys.com:82/Kolab:/3.1/Debian_7.0/ ./
deb http://obs.kolabsys.com:82/Kolab:/3.1:/Updates/Debian_7.0/ ./
deb http://obs.kolabsys.com:82/Kolab:/Development/Debian_7.0/ ./
#deb http://obs.kolabsys.com:82/home:/tpokorra:/branches:/Kolab:/Development/Debian_7.0/ ./
FINISH
wget http://obs.kolabsys.com:82/Kolab:/3.1/Debian_7.0/Release.key
apt-key add Release.key; rm -rf Release.key
wget http://obs.kolabsys.com:82/Kolab:/3.1:/Updates/Debian_7.0/Release.key
apt-key add Release.key; rm -rf Release.key
wget http://obs.kolabsys.com:82/Kolab:/Development/Debian_7.0/Release.key
apt-key add Release.key; rm -rf Release.key
wget http://obs.kolabsys.com:82/home:/tpokorra:/branches:/Kolab:/Development/Debian_7.0/Release.key
apt-key add Release.key; rm -rf Release.key
cat > /etc/apt/preferences.d/kolab <<FINISH
Package: *
Pin: origin obs.kolabsys.com
Pin-Priority: 501
FINISH
apt-get update
apt-get install kolab
setup-kolab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment