|
Lines 26-34
Link Here
|
| 26 |
|
26 |
|
| 27 |
%post |
27 |
%post |
| 28 |
if [ -f /etc/cron.d/yast2-online-update ] ; then |
28 |
if [ -f /etc/cron.d/yast2-online-update ] ; then |
|
|
29 |
cronjob=`grep "rug up -t patch" /etc/cron.d/yast2-online-update 2>/dev/null | grep -v "\-y"` |
| 30 |
if [ -n "$cronjob" ] ; then |
| 31 |
# do not ask for confirmation |
| 32 |
sed -e "s/rug up/rug up -y/" -i /etc/cron.d/yast2-online-update |
| 33 |
fi |
| 29 |
cronjob=`grep "online_update" /etc/cron.d/yast2-online-update 2>/dev/null` |
34 |
cronjob=`grep "online_update" /etc/cron.d/yast2-online-update 2>/dev/null` |
| 30 |
if [ -n "$cronjob" ] ; then |
35 |
if [ -n "$cronjob" ] ; then |
| 31 |
sed -e "s/online_update/rug up -t patch/" -i /etc/cron.d/yast2-online-update |
36 |
sed -e "s/online_update/rug up -y -t patch/" -i /etc/cron.d/yast2-online-update |
| 32 |
if [ "`echo "$cronjob" | grep -c " -g" 2>/dev/null`" -gt 0 ] ; then |
37 |
if [ "`echo "$cronjob" | grep -c " -g" 2>/dev/null`" -gt 0 ] ; then |
| 33 |
sed -e "s/ -g/ -d/" -i /etc/cron.d/yast2-online-update |
38 |
sed -e "s/ -g/ -d/" -i /etc/cron.d/yast2-online-update |
| 34 |
fi |
39 |
fi |