bin/update
changeset 100 44c32fd60997
parent 98 a3734856e0fa
--- a/bin/update	Sun Dec 22 18:22:37 2013 +0200
+++ b/bin/update	Sat Apr 26 23:55:18 2014 +0300
@@ -4,14 +4,16 @@
 # Bootstrap
 if [ $0 == './update' ]; then
     SRV=$(pwd)
-    OPT=./opt
+    OPT=/opt/pvl-verkko
+    LIB=/opt/pvl-dns/lib
 else
-    SRV=${SRV:-/srv/dns}
-    OPT=${SRV:-/srv/dns/opt}
+    SRV=${SRV:-/srv/verkko}
+    OPT=${SRV:-/opt/pvl-verkko}
+    LIB=/opt/pvl-dns/lib
     cd $SRV
 fi
 
-source lib/update
+source $LIB/update
 
 function commit {
     ## Commit
@@ -103,7 +105,7 @@
     parse_args "$@"
 
     ## Input dirs
-    for dir in etc etc/zones etc/hosts opt; do
+    for dir in etc etc/zones etc/hosts; do
         [ -d $dir ] || die "Missing directory: $dir"
     done