ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Hihin Ruslan <ruslandh@gmail.com>
To: community@lists.altlinux.org
Subject: [Comm] Ежедневная проверка Chrome
Date: Fri, 13 Mar 2015 08:41:30 +0300
Message-ID: <201503130841.37174@ruslandh> (raw)

[-- Attachment #1: Type: text/plain, Size: 2516 bytes --]

Для обновления Chrome. сделал 
скрипт  /etc/cron.daily/google-chrome1.sh следующего содержания:

>--
#!/bin/bash


# sources.list setting for google-chrome updates.
pack="https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
name="google-chrome-stable_current_x86_64.rpm"
names="google-chrome-stable"
namep=$(basename $name .rpm)

  # The initial install happens in the post-install scripts, but 
there have been
  # reports of configuration problems, so just verify that 
everything looks
  # good, and if not, try to install again.

/usr/bin/wget $pack -c -P /tmp/

namet=$(/bin/rpm -q $names)
namep1="$(/usr/bin/rpm -qp /tmp/$name)"

echo $namet $namep1
#!/bin/bash


# sources.list setting for google-chrome updates.
pack="https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
name="google-chrome-stable_current_x86_64.rpm"
names="google-chrome-stable"
namep=$(basename $name .rpm)

  # The initial install happens in the post-install scripts, but 
there have been
  # reports of configuration problems, so just verify that 
everything looks
  # good, and if not, try to install again.

/usr/bin/wget $pack -c -P /tmp/

namet=$(/bin/rpm -q $names)
namep1="$(/usr/bin/rpm -qp /tmp/$name)"

echo $namet $namep1
#!/bin/bash


# sources.list setting for google-chrome updates.
pack="https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
name="google-chrome-stable_current_x86_64.rpm"
names="google-chrome-stable"
namep=$(basename $name .rpm)

  # The initial install happens in the post-install scripts, but 
there have been
  # reports of configuration problems, so just verify that 
everything looks
  # good, and if not, try to install again.

/usr/bin/wget $pack -c -P /tmp/

namet=$(/bin/rpm -q $names)
namep1="$(/usr/bin/rpm -qp /tmp/$name)"

echo $namet $namep1

/bin/mv /tmp/$name /tmp/$namep1.rpm
if [ $? -eq 0 ];then
    if [  ! "$namet" = "$namep1"  ];then
        /bin/rpm -F --noscripts  --oldpackage /tmp/$namep1.rpm
        /bin/rm -f /etc/cron.daily/google-chrome
        echo "Update $namep1 !"
    else
        echo "Save $namep1"
    fi

fi
>--

и через postfix полусаю от него ежедневные сообщения.
Удобно :)
-- 
  А ещё говорят так  (fortune):
 
Philadelphia is not dull -- it just seems so because it is next 
to exciting Camden, New Jersey. 
________________________________________________________________________
С уважением Хихин Руслан

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

                 reply	other threads:[~2015-03-13  5:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201503130841.37174@ruslandh \
    --to=ruslandh@gmail.com \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git