wok rev 2245

squirrelmail plugins: add post_remove
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 15 20:40:24 2009 +0000 (2009-02-15)
parents 67c4b602e8c2
children 0caf13e4f1da
files squirrelmail-archive/receipt squirrelmail-html/receipt squirrelmail-multilogin/receipt squirrelmail-quota/receipt squirrelmail-sizes/receipt squirrelmail-smallcal/receipt squirrelmail-vkeyboard/receipt
line diff
     1.1 --- a/squirrelmail-archive/receipt	Sun Feb 15 18:23:02 2009 +0000
     1.2 +++ b/squirrelmail-archive/receipt	Sun Feb 15 20:40:24 2009 +0000
     1.3 @@ -22,3 +22,8 @@
     1.4  {
     1.5  	echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
     1.6  }
     1.7 +
     1.8 +post_remove()
     1.9 +{
    1.10 +	sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
    1.11 +}
     2.1 --- a/squirrelmail-html/receipt	Sun Feb 15 18:23:02 2009 +0000
     2.2 +++ b/squirrelmail-html/receipt	Sun Feb 15 20:40:24 2009 +0000
     2.3 @@ -22,3 +22,8 @@
     2.4  {
     2.5  	echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
     2.6  }
     2.7 +
     2.8 +post_remove()
     2.9 +{
    2.10 +	sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
    2.11 +}
     3.1 --- a/squirrelmail-multilogin/receipt	Sun Feb 15 18:23:02 2009 +0000
     3.2 +++ b/squirrelmail-multilogin/receipt	Sun Feb 15 20:40:24 2009 +0000
     3.3 @@ -33,3 +33,8 @@
     3.4  	echo "$PACKAGE" >> $1/$INSTALLED/squirrelmail/modifiers
     3.5  	echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
     3.6  }
     3.7 +
     3.8 +post_remove()
     3.9 +{
    3.10 +	sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
    3.11 +}
     4.1 --- a/squirrelmail-quota/receipt	Sun Feb 15 18:23:02 2009 +0000
     4.2 +++ b/squirrelmail-quota/receipt	Sun Feb 15 20:40:24 2009 +0000
     4.3 @@ -29,3 +29,8 @@
     4.4  {
     4.5  	echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
     4.6  }
     4.7 +
     4.8 +post_remove()
     4.9 +{
    4.10 +	sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
    4.11 +}
     5.1 --- a/squirrelmail-sizes/receipt	Sun Feb 15 18:23:02 2009 +0000
     5.2 +++ b/squirrelmail-sizes/receipt	Sun Feb 15 20:40:24 2009 +0000
     5.3 @@ -22,3 +22,8 @@
     5.4  {
     5.5  	echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
     5.6  }
     5.7 +
     5.8 +post_remove()
     5.9 +{
    5.10 +	sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
    5.11 +}
     6.1 --- a/squirrelmail-smallcal/receipt	Sun Feb 15 18:23:02 2009 +0000
     6.2 +++ b/squirrelmail-smallcal/receipt	Sun Feb 15 20:40:24 2009 +0000
     6.3 @@ -25,3 +25,8 @@
     6.4  You can enable calendar display in Option -> Display Preferences
     6.5  EOF
     6.6  }
     6.7 +
     6.8 +post_remove()
     6.9 +{
    6.10 +	sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
    6.11 +}
     7.1 --- a/squirrelmail-vkeyboard/receipt	Sun Feb 15 18:23:02 2009 +0000
     7.2 +++ b/squirrelmail-vkeyboard/receipt	Sun Feb 15 20:40:24 2009 +0000
     7.3 @@ -27,3 +27,8 @@
     7.4  {
     7.5  	echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
     7.6  }
     7.7 +
     7.8 +post_remove()
     7.9 +{
    7.10 +	sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
    7.11 +}