wok-6.x rev 14064

shaarli: fix path + security fix
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 20 11:36:45 2013 +0100 (2013-02-20)
parents 039634f2769c
children 528df175b477
files shaarli/receipt
line diff
     1.1 --- a/shaarli/receipt	Wed Feb 20 11:08:32 2013 +0100
     1.2 +++ b/shaarli/receipt	Wed Feb 20 11:36:45 2013 +0100
     1.3 @@ -23,8 +23,10 @@
     1.4  genpkg_rules()                                      
     1.5  {
     1.6  	mkdir -p $fs/var/www/$PACKAGE
     1.7 -	cd $fs/var/www/$PACKAGE
     1.8 +	cd $fs/var/www
     1.9  	unzip "$SOURCES_REPOSITORY/$_TARBALL"
    1.10 +	mv $fs/var/www/$PACKAGE* $fs/var/www/$PACKAGE
    1.11 +	sed -i "s|mt_rand())|mt_rand().'$_URL$$')|" $fs/var/www/$PACKAGE/index.php
    1.12  }
    1.13  
    1.14  post_install()