Projects
jsj
jsj-installtools
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 140
View file
PrepareUpdateCrontab
Changed
@@ -4,20 +4,20 @@ sed -e '/download.use_deltarpm =/ a download.use_deltarpm=false' < /etc/zypp/zypp.conf > $ZYPP_CONF mv $ZYPP_CONF /etc/zypp/zypp.conf chmod 644 /etc/zypp/zypp.conf -zypper -n in -l yast2-online-update-configuration -egrep /cron.hourly /etc/crontab -if $? = 1 ; then -cat - >> /etc/crontab << EOF +if ${VERSION_ID/./} -ge 160 ; then + systemctl enable RunZypperUpdateCron.timer + systemctl start RunZypperUpdateCron.timer +else + zypper -n in -l yast2-online-update-configuration + egrep /cron.hourly /etc/crontab + if $? = 1 ; 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 -if ${VERSION_ID/./} -ge 160 ; then - systemctl enable RunZypperUpdateCron.timer - systemctl start RunZypperUpdateCron.timer -else + fi ( crontab -l; echo "$((0x$(head -c2 /dev/urandom | hexdump | awk '$2 > 0 {print $2}') % 60)) */4 * * * /usr/share/jsjinstalltools/RunZypperUpdateCron" ) | \ egrep -v "^#" | crontab - 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
.