--- trunk/Makefile 2005/07/31 18:10:45 32 +++ trunk/Makefile 2005/07/31 18:58:26 33 @@ -1,4 +1,5 @@ tmp=/tmp/backuppc-svn/ +target=/data/backuppc/ all: @echo "make install to install BackupPC using sudo" @@ -6,18 +7,21 @@ test: stop reinstall start reinstall: - sudo perl ./configure.pl --batch --config-path=/data/backuppc/data/conf/config.pl + sudo perl ./configure.pl --batch --config-path=$(target)/data/conf/config.pl install: sudo perl ./configure.pl start: #sudo -u backuppc /data/backuppc/bin/BackupPC -d - sudo /data/backuppc/etc/backuppc start + sudo $(target)/etc/backuppc start stop: #sudo -u backuppc killall BackupPC && sleep 1 || true - sudo /data/backuppc/etc/backuppc stop + sudo $(target)/etc/backuppc stop + +install-etc: + test -d $(target)/etc || cp -r etc $(target) && chmod 755 $(target)/etc/backuppc asa: rm -Rf $(tmp)