Projects
home:ajaissle:branches:Kolab:Development
kolab-scripts
run-update-pkgs.sh
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File run-update-pkgs.sh of Package kolab-scripts
#!/bin/bash if [[ "$INTERNET_CONNECTIVITY" != "no" ]]; then echo "Refreshing repository list..." zypper clean >/dev/null zypper refresh echo "Checking for Kolab updates... " if [[ `zypper list-updates | grep kolab | wc -l` == 0 ]] ; then echo "Kolab packages are up to date" else read -p " There are updates for your Kolab packages. Do you want to update these packages now? [Y/n] " ANSWER if [[ $ANSWER != 'n' ]] ; then echo " Updating Kolab packages..." && \ zypper install --from server:Kolab:UNSTABLE kolab `rpm -qa --queryformat '%{NAME}\n' '*kolab*'` fi fi 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
.