fix chromium.install post_remove function

This commit is contained in:
AlmAck 2013-10-09 20:27:19 +02:00
parent 51477f9126
commit bcda1bd6a6

View File

@ -2,7 +2,27 @@
[ -f extra/etc/chromium/default ] && _default='extra/etc/chromium/default'
flashver=11.8.800.154
instructions() {
/bin/cat << EOF
Disable all other flash plugins:
Type chrome://plugins/ in the adress bar and press Enter
Click on Details button on the top right
Click on Disable near all the Flash plugins except the first one
EOF
}
post_install() {
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
post_upgrade
instructions
}
post_upgrade() {
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
if [[ $(cat "$_default") == *ppapi* ]]; then
@ -12,8 +32,8 @@ post_install() {
fi
}
post_upgrade() {
post_install
post_remove() {
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
if [ -f "$_default" ]; then
sed -i 's| --ppapi-flash-path=/usr/lib/PepperFlash/libpepflashplayer.so --ppapi-flash-version=1.*[0-999]||' "$_default"
@ -21,7 +41,3 @@ post_upgrade() {
: # do nothing
fi
}
post_remove() {
post_install
}