re-create installation with make reset
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 9 Jan 2011 18:38:17 +0000 (18:38 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 9 Jan 2011 18:38:17 +0000 (18:38 +0000)
Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..407c3ee
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,18 @@
+all:
+       @echo "make reset"
+
+clean:
+       dropdb backuppc
+       createdb backuppc
+       createlang plpgsql backuppc
+       sudo chown backuppc cgi-bin/index.cgi
+       sudo chmod u+s cgi-bin/index.cgi
+       sudo rm -Rf /tmp/kinoindex
+
+update:
+       sudo -u backuppc ./bin/BackupPC_updatedb -c
+
+tar:
+       sudo -u backuppc ./bin/BackupPC_incPartsUpdate
+
+reset: clean update tar