wok-current rev 9285
backuppc: fix FSH
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Mar 16 10:38:51 2011 +0100 (2011-03-16) |
parents | aa9358196db9 |
children | 22a6fdbd9840 |
files | backuppc/receipt |
line diff
1.1 --- a/backuppc/receipt Wed Mar 16 10:03:27 2011 +0100 1.2 +++ b/backuppc/receipt Wed Mar 16 10:38:51 2011 +0100 1.3 @@ -22,6 +22,10 @@ 1.4 { 1.5 cd $src 1.6 mkdir -p _pkg/etc/apache/conf.d 1.7 + grep -q share/BackupPC/doc configure.pl || 1.8 + sed -i -e 's|/doc|/share/BackupPC/doc|' \ 1.9 + -e 's|bin doc|bin share/BackupPC/doc|' \ 1.10 + configure.pl 1.11 perl configure.pl --batch --dest-dir=$PWD/_pkg --install-dir=/usr \ 1.12 --data-dir=/var/lib/BackupPC --config-dir=/etc/BackupPC \ 1.13 --log-dir=/var/log/BackupPC --backuppc-user=www \ 1.14 @@ -39,7 +43,7 @@ 1.15 sed -i -e "s/''http/'http/;s/min''/min'/" \ 1.16 -e 's/-E -N -d/-E -d/' \ 1.17 -e "s/^\\\$Conf{CgiAdminUsers}.*/\$Conf{CgiAdminUsers} = 'root';/" \ 1.18 - -e 's|sshPath -q -x|sshPath -i /etc/BackupPC/.ssh/id_rsa -q -x|' \ 1.19 + -e 's|sshPath -q -x|sshPath -o UserKnownHostsFile=/etc/BackupPC/.ssh/known_hosts -i /etc/BackupPC/.ssh/id_rsa -q -x|' \ 1.20 $fs/etc/BackupPC/config.pl 1.21 chown www.www $fs/etc/BackupPC/config.pl 1.22 chmod 755 $fs/etc $fs/var $fs/var/*