Projects
jsj
jsj-installtools
PrepareUpdateCrontab
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File PrepareUpdateCrontab of Package jsj-installtools
#!/bin/bash . /usr/share/jsjinstalltools/GetVersion 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 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 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 "$((0x$(head -c2 /dev/urandom | hexdump | awk '$2 > 0 {print $2}') % 60)) */4 * * * /usr/share/jsjinstalltools/RunZypperUpdateCron" ) | \ egrep -v "^#" | crontab - if [[ ${VERSION_ID/./} -eq 423 || (( ${VERSION_ID/./} -ge 132 && ${VERSION_ID/./} -lt 421 )) ]]; then sed -i -e '/^AccuracySec/ s/=.*$/=1min/' /usr/lib/systemd/system/logrotate.timer systemctl enable logrotate.timer systemctl start logrotate.timer 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
.