# HG changeset patch # User Pascal Bellard # Date 1429087500 -7200 # Node ID 600ae8f0e5e7d0b6eb8770526195e610b2291a85 # Parent 82816c8eb08bf65be6b1e52c140e1354e92ac97b boxbackup-server, privoxy: fix post_install (again) diff -r 82816c8eb08b -r 600ae8f0e5e7 boxbackup-server/receipt --- a/boxbackup-server/receipt Wed Apr 15 10:26:28 2015 +0200 +++ b/boxbackup-server/receipt Wed Apr 15 10:45:00 2015 +0200 @@ -28,7 +28,6 @@ # Rules to configure and make the package. compile_rules() { - cd $src ./configure --prefix=/usr $CONFIGURE_ARGS && make -j1 && { mkdir -p $DESTDIR @@ -63,7 +62,7 @@ { # default conf dir is now /etc/boxbackup if [ ! -e $1/etc/box/bbstored.conf ]; then - mv $1/etc/box $1$CONF_DIR + mv /etc/box $1$CONF_DIR fi # adduser BBUSER if needed @@ -142,11 +141,11 @@ status # Securing $CONF_DIR - chroot $1/ chown -R $BBUSER $CONF_DIR/bbstored* &&i + chroot $1/ chown -R $BBUSER $CONF_DIR/bbstored* && chmod 700 -R $1$CONF_DIR/bbstored* fi - if [ -e $CA_DIR ]; then + if [ -e $1$CA_DIR ]; then # Warning echo echo "IMPORTANT NOTE:" diff -r 82816c8eb08b -r 600ae8f0e5e7 privoxy/receipt --- a/privoxy/receipt Wed Apr 15 10:26:28 2015 +0200 +++ b/privoxy/receipt Wed Apr 15 10:45:00 2015 +0200 @@ -65,10 +65,10 @@ # and change file permissions echo -n "Changing file permissions..." - chroot $1/ chown -R privoxy.privoxy $1/etc/privoxy + chroot $1/ chown -R privoxy.privoxy /etc/privoxy chown -R root.root $1/etc/privoxy/templates chown root.root $1/etc/privoxy - chroot $1/ chown privoxy.privoxy $1/var/log/privoxy/logfile + chroot $1/ chown privoxy.privoxy /var/log/privoxy/logfile status }