--- trunk/Makefile 2005/08/22 09:47:06 69 +++ trunk/Makefile 2005/09/01 18:38:49 111 @@ -24,13 +24,18 @@ sudo $(target)/etc/backuppc stop install-etc: - test -d $(target)/etc || cp -r etc $(target) && chmod 755 $(target)/etc/backuppc + test -d $(target)/etc || sudo cp -r etc $(target) && sudo chmod 755 $(target)/etc/backuppc update: sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -xls: - sudo -u backuppc /data/backuppc/bin/BackupPC_xls_report && cp -vf /tmp/report.xls ~/public_html/ +index: test + sudo rm -Rf /data/backuppc/data/casket || true + sudo -u backuppc /data/backuppc/bin/BackupPC_updatedb -i + +xls: test + sudo -u backuppc /data/backuppc/bin/BackupPC_xls_report + which gnumeric && gnumeric /tmp/report.xls || cp -vf /tmp/report.xls ~/public_html/ asa: rm -Rf $(tmp)