This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# lxc: linux Container library | |
# Authors: | |
# Original Debian: | |
# Daniel Lezcano <[email protected]> | |
# Changes for Raspberry Pi by: | |
# Oliver Heller <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import os.path | |
import sys | |
from collections import deque | |
import urllib.request | |
import re | |
if len(sys.argv) != 2: | |
print("Please specify which Kolab version to run this script for. eg. 3.4, or 3.4-updates") | |
sys.exit(-1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir -p obs/kolab-3.4 | |
cd obs/kolab-3.4 | |
obsurl=http://obs.kolabsys.com/repositories/Kolab:/3.4/CentOS_7/src/ | |
wget $obsurl -O index.html | |
# see http://unix.stackexchange.com/questions/181254/how-to-use-grep-and-cut-in-script-to-obtain-website-urls-from-an-html-file | |
for f in `cat index.html | grep rpm | grep -Eoi '<a [^>]+>' | grep -Eo 'href="[^\"]+"' | awk -F'"' '{ print $2}'` | |
do | |
wget $obsurl/$f | |
done | |
rm index.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Text; | |
namespace indent | |
{ | |
class main | |
{ | |
// Process all files in the directory passed in, recurse on any directories | |
// that are found, and process the files they contain. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
service cyrus-imapd start | |
sleep 3 | |
toolsdir=`pwd` | |
while read line | |
do | |
domain=$line | |
kontakte=`kolab list-mailbox-metadata "user/*@$domain" | grep -E "Kontakte|Contact"` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# template script for generating CentOS container for LXC | |
# | |
# | |
# lxc: linux Container library | |
# Authors: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# lxc: linux Container library | |
# Authors: | |
# Daniel Lezcano <[email protected]> | |
# This library is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU Lesser General Public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# Timotheus Pokorra, for TBits.net, April 2013 | |
# | |
# import ldif file that has been dumped from Kolab2 | |
# restoring domains, domain admins, and users | |
require_once "/usr/share/kolab-webadmin/lib/functions.php"; | |
function debug($msg){ | |
if(is_writeable("/tmp/mylog.log")){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# call with domain name as parameter, eg. ./fixannotations.sh mydomain.org | |
domain="user/*@$1" | |
acceptedFolderTypes=( | |
"event" "event.default" | |
"contact" "contact.default" | |
"note" "note.default" | |
"task" "task.default" | |
"journal" "journal.default" | |
"mail.outbox" "mail.sentitems" "text/plain") |