use sudo for install-etc target
authordpavlin <dpavlin@8392b6e1-25fa-0310-8288-cc32f8e212ea>
Wed, 31 Aug 2005 20:33:58 +0000 (20:33 +0000)
committerdpavlin <dpavlin@8392b6e1-25fa-0310-8288-cc32f8e212ea>
Wed, 31 Aug 2005 20:33:58 +0000 (20:33 +0000)
git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/BackupPC/trunk@106 8392b6e1-25fa-0310-8288-cc32f8e212ea

Makefile

index 3886bb2..f02eb6a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -24,7 +24,7 @@ stop:
        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