# HG changeset patch # User Pascal Bellard # Date 1234730424 0 # Node ID cb2efee225ba5ccd693ad9d49f707ac4997ef4a3 # Parent 67c4b602e8c2c8db1937f7e975caff195ed28925 squirrelmail plugins: add post_remove diff -r 67c4b602e8c2 -r cb2efee225ba squirrelmail-archive/receipt --- a/squirrelmail-archive/receipt Sun Feb 15 18:23:02 2009 +0000 +++ b/squirrelmail-archive/receipt Sun Feb 15 20:40:24 2009 +0000 @@ -22,3 +22,8 @@ { echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php } + +post_remove() +{ + sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php +} diff -r 67c4b602e8c2 -r cb2efee225ba squirrelmail-html/receipt --- a/squirrelmail-html/receipt Sun Feb 15 18:23:02 2009 +0000 +++ b/squirrelmail-html/receipt Sun Feb 15 20:40:24 2009 +0000 @@ -22,3 +22,8 @@ { echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php } + +post_remove() +{ + sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php +} diff -r 67c4b602e8c2 -r cb2efee225ba squirrelmail-multilogin/receipt --- a/squirrelmail-multilogin/receipt Sun Feb 15 18:23:02 2009 +0000 +++ b/squirrelmail-multilogin/receipt Sun Feb 15 20:40:24 2009 +0000 @@ -33,3 +33,8 @@ echo "$PACKAGE" >> $1/$INSTALLED/squirrelmail/modifiers echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php } + +post_remove() +{ + sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php +} diff -r 67c4b602e8c2 -r cb2efee225ba squirrelmail-quota/receipt --- a/squirrelmail-quota/receipt Sun Feb 15 18:23:02 2009 +0000 +++ b/squirrelmail-quota/receipt Sun Feb 15 20:40:24 2009 +0000 @@ -29,3 +29,8 @@ { echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php } + +post_remove() +{ + sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php +} diff -r 67c4b602e8c2 -r cb2efee225ba squirrelmail-sizes/receipt --- a/squirrelmail-sizes/receipt Sun Feb 15 18:23:02 2009 +0000 +++ b/squirrelmail-sizes/receipt Sun Feb 15 20:40:24 2009 +0000 @@ -22,3 +22,8 @@ { echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php } + +post_remove() +{ + sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php +} diff -r 67c4b602e8c2 -r cb2efee225ba squirrelmail-smallcal/receipt --- a/squirrelmail-smallcal/receipt Sun Feb 15 18:23:02 2009 +0000 +++ b/squirrelmail-smallcal/receipt Sun Feb 15 20:40:24 2009 +0000 @@ -25,3 +25,8 @@ You can enable calendar display in Option -> Display Preferences EOF } + +post_remove() +{ + sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php +} diff -r 67c4b602e8c2 -r cb2efee225ba squirrelmail-vkeyboard/receipt --- a/squirrelmail-vkeyboard/receipt Sun Feb 15 18:23:02 2009 +0000 +++ b/squirrelmail-vkeyboard/receipt Sun Feb 15 20:40:24 2009 +0000 @@ -27,3 +27,8 @@ { echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php } + +post_remove() +{ + sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php +}