- fixed hyperEstraier index URI setting in config file to work finewq
[BackupPC.git] / Makefile
index 795c00b..58722f1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -16,12 +16,14 @@ agi:
        sudo /etc/init.d/backuppc-agi stop
        sudo perl ./configure.pl --batch --config-path=/data/backuppc-agi/data/conf/config.pl
        cd custom/ && find . -type f | grep -v '.svn' | sudo cpio -puV /data/backuppc-agi/
+       cat /data/backuppc-agi/data/conf/config.pl | perl -e 'while(<>){if($$_=~m/^(.*)___ESTRAIER_URI___(.*)$$/gi){print "$${1}http://localhost:1978/nodes/agi$$2";}else{print $$_;}}' | less
        sudo /etc/init.d/backuppc-agi start
 
 qc:
        sudo /etc/init.d/backuppc-qc stop
        sudo perl ./configure.pl --batch --config-path=/data/backuppc-qc/data/conf/config.pl
        cd custom/ && find . -type f | grep -v '.svn' | sudo cpio -puV /data/backuppc-qc/
+       cat /data/backuppc-qc/data/conf/config.pl | perl -e 'while(<>){if($$_=~m/^(.*)___ESTRAIER_URI___(.*)$$/gi){print "$${1}http://localhost:1978/nodes/qc$$2";}else{print $$_;}}' | less
        sudo /etc/init.d/backuppc-qc start
 
 install:
@@ -78,9 +80,9 @@ burn: test
        psql -c "delete from archive_burned" backuppc
        sudo /data/backuppc/bin/BackupPC_burnArchiveCLI
 
-cleanup-restore:
+clean-restore:
        sudo -u backuppc rm -Rf /data/backuppc/data/pc/restore/
 
-restore: cleanup-restore test
+restore: clean-restore test
        sleep 1
        sudo ./bin/BackupPC_recover_from_increments /data/backuppc/temp/llin_etc*