Projects
jsj
jsj-installtools
PrepareUpdateCrontab
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File PrepareUpdateCrontab of Package jsj-installtools (Revision 13)
Currently displaying revision
13
,
Show latest
#!/bin/bash ZYPP_CONF=$(mktemp /tmp/zypp.conf.XXXXXXXXXX) sed -e '/download.use_deltarpm =/ a download.use_deltarpm=false' < /etc/zypp/zypp.conf > $ZYPP_CONF mv $ZYPP_CONF /etc/zypp/zypp.conf zypper -n in -l yast2-online-update-configuration egrep /cron.hourly /etc/crontab if [ ! $? ]; then cat - >> /etc/crontab << EOF 59 * * * * root rm -f /var/spool/cron/lastrun/cron.hourly 14 0 * * * root rm -f /var/spool/cron/lastrun/cron.daily 29 0 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly 44 0 1 * * root rm -f /var/spool/cron/lastrun/cron.monthly EOF fi ( crontab -l; echo "0 5 * * * zypper -n up --auto-agree-with-licenses" ) | \ egrep -v "^#" | crontab -
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
.