wok-4.x rev 12344
squirrelmail-compatibility-plugin: apply patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Oct 20 12:49:43 2012 +0200 (2012-10-20) |
parents | 176e5cd6fb16 |
children | cb95ff87a369 |
files | squirrelmail-compatibility-plugin/receipt |
line diff
1.1 --- a/squirrelmail-compatibility-plugin/receipt Thu Oct 18 18:19:49 2012 +0200 1.2 +++ b/squirrelmail-compatibility-plugin/receipt Sat Oct 20 12:49:43 2012 +0200 1.3 @@ -24,3 +24,12 @@ 1.4 mkdir -p $fs/usr/share/squirrelmail/plugins 1.5 cp -a $_pkg/$SOURCE $fs/usr/share/squirrelmail/plugins 1.6 } 1.7 + 1.8 +post_install() 1.9 +{ 1.10 + local file 1.11 + local line 1.12 + file=$1/usr/share/squirrelmail/functions/strings.php 1.13 + line="include_once(SM_PATH . 'plugins/compatibility/functions.php');" 1.14 + grep -qs "$line" $file || sed -i "s|.*global.php.*|&\n$line|" $file 1.15 +}