Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:lrupp
windows-offline-update
windows-offline-update-cron
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File windows-offline-update-cron of Package windows-offline-update
#!/bin/sh # # cronscript for windows-offline-update # Author: Lars Vogdt # This script is GPL v.3 and free to use. # See License file for use of this software. # # $Id$ # PATH=/bin:/usr/bin:/usr/lib/rkhunter/scripts DISTCONFIG="/etc/sysconfig/windows-offline-update" ################################################## # Default/Fallback values # Don't change them here! Use $DISCONFIG instead ################################################## : ${START_WIN_UPDATE}:="yes" : ${NICE}:="0" : ${DOWNLOAD_UPDATES}:="/usr/share/ctupdate/sh/DownloadUpdates.sh" : ${CREATE_ISO}:="/usr/share/ctupdate/sh/CreateISOImage.sh" : ${LOGFILE}:="/var/log/windows-update.log" : ${LANGUAGES}:="enu deu" : ${SYSTEMS}:="all-x86" : ${DOWNLOADSP}:="yes" : ${MAKEISO}:="yes" : ${DOTNET}:="yes" : ${CLEANUP}:="yes" : ${PROXY}:="" ################################################## if [ ! -x "$DOWNLOAD_UPDATES" ]; then echo "$DOWNLOAD_UPDATES not found or not executable" >&2 exit 1 fi # source our config if [ -f "$DISTCONFIG" ]; then . "$DISTCONFIG" else echo "$DISTCONFIG not found - using defaults" >&2 fi case "$START_WIN_UPDATE" in [Yy]*) case "$DOWNLOADSP" in [Yy]*) PARAMS="" ;; *) PARAMS="/excludesp" ISOPARAMS="/excludesp" ;; esac case "$DOTNET" in [Yy]*) PARAMS="$PARAMS /dotnet" ISOPARAMS="$PARAMS /dotnet" ;; esac case "$CLEANUP" in [Nn]*) PARAMS="$PARAMS /nocleanup" ;; esac if [ -n "$PROXY" ]; then PROXYSERV="/proxy $PROXY" else PROXYSERV="" fi for SYSTEM in $SYSTEMS; do for SYSLANG in $LANGUAGES; do $DOWNLOAD_UPDATES $SYSTEM $SYSLANG $PARAMS $PROXYSERV done done case "$MAKEISO" in [Yy]*) if [ ! -x "$CREATE_ISO" ]; then echo "$CREATE_ISO not found or not executable" >&2 exit 1 fi for SYSTEM in $SYSTEMS; do for SYSLANG in $LANGUAGES; do $CREATE_ISO $SYSTEM $SYSLANG $ISOPARAMS done done ;; esac *) exit 0; ;; esac
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor