Projects
home:ajaissle
kolab-scripts
check-services-files.sh
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File check-services-files.sh of Package kolab-scripts
#!/bin/bash PATH=/usr/bin echo -n "Checking /etc/services file for sieve port at 4190... " if grep -q "sieve.*4190" /etc/services; then echo OK else echo BACKUP="/tmp/services-$(date +%s)" cp /etc/services $BACKUP sed -i \ -e '/sieve 2000/d' \ -e '/# 4185-4198/a \ sieve 4190\/tcp # Cyrus SIEVE \ sieve 4190\/ucp # Cyrus SIEVE' \ /etc/services echo " Updated sieve port to 4190 in /etc/services" echo " Backup stored at: $BACKUP" echo fi
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.