Обсуждение:PepperFlash в Chromium: различия между версиями
(Новая страница: «Для обновления Chrome. сделал скрипт /etc/cron.daily/google-chrome1.sh следующего содержания: <source="bash"> #!/bin/b...») |
мНет описания правки |
||
Строка 1: | Строка 1: | ||
Для обновления Chrome. сделал скрипт /etc/cron.daily/google-chrome1.sh следующего содержания: | Для обновления Chrome. сделал скрипт /etc/cron.daily/google-chrome1.sh следующего содержания: | ||
<source="bash"> | <source lang="bash"> | ||
#!/bin/bash | #!/bin/bash | ||
Версия от 08:39, 13 марта 2015
Для обновления 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 полусаю от него ежедневные сообщения Удобно:)