wok-next rev 17941

boxbackup-server, privoxy: fix post_install (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Apr 15 10:45:00 2015 +0200 (2015-04-15)
parents 82816c8eb08b
children 432d327b4c99
files boxbackup-server/receipt privoxy/receipt
line diff
     1.1 --- a/boxbackup-server/receipt	Wed Apr 15 10:26:28 2015 +0200
     1.2 +++ b/boxbackup-server/receipt	Wed Apr 15 10:45:00 2015 +0200
     1.3 @@ -28,7 +28,6 @@
     1.4  # Rules to configure and make the package.
     1.5  compile_rules()
     1.6  {
     1.7 -	cd $src
     1.8  	./configure --prefix=/usr $CONFIGURE_ARGS &&
     1.9  	make -j1 && {
    1.10  		mkdir -p $DESTDIR
    1.11 @@ -63,7 +62,7 @@
    1.12  {
    1.13  	# default conf dir is now /etc/boxbackup
    1.14  	if [ ! -e $1/etc/box/bbstored.conf ]; then
    1.15 -		mv $1/etc/box $1$CONF_DIR
    1.16 +		mv /etc/box $1$CONF_DIR
    1.17  	fi
    1.18  
    1.19  	# adduser BBUSER if needed
    1.20 @@ -142,11 +141,11 @@
    1.21  		status
    1.22  
    1.23  		# Securing $CONF_DIR
    1.24 -		chroot $1/ chown -R $BBUSER $CONF_DIR/bbstored* &&i
    1.25 +		chroot $1/ chown -R $BBUSER $CONF_DIR/bbstored* &&
    1.26  		chmod 700 -R $1$CONF_DIR/bbstored*
    1.27  	fi
    1.28  
    1.29 -	if [ -e $CA_DIR ]; then
    1.30 +	if [ -e $1$CA_DIR ]; then
    1.31  		# Warning
    1.32  		echo
    1.33  		echo "IMPORTANT NOTE:"
     2.1 --- a/privoxy/receipt	Wed Apr 15 10:26:28 2015 +0200
     2.2 +++ b/privoxy/receipt	Wed Apr 15 10:45:00 2015 +0200
     2.3 @@ -65,10 +65,10 @@
     2.4  
     2.5  	# and change file permissions
     2.6  	echo -n "Changing file permissions..."
     2.7 -	chroot $1/ chown -R privoxy.privoxy $1/etc/privoxy
     2.8 +	chroot $1/ chown -R privoxy.privoxy /etc/privoxy
     2.9  	chown -R root.root $1/etc/privoxy/templates
    2.10  	chown root.root $1/etc/privoxy
    2.11 -	chroot $1/ chown privoxy.privoxy $1/var/log/privoxy/logfile
    2.12 +	chroot $1/ chown privoxy.privoxy /var/log/privoxy/logfile
    2.13  	status
    2.14  }
    2.15