]> git.decadent.org.uk Git - dak.git/blobdiff - config/debian/yearly.functions
Add yearly cronjob
[dak.git] / config / debian / yearly.functions
diff --git a/config/debian/yearly.functions b/config/debian/yearly.functions
new file mode 100644 (file)
index 0000000..a13b89b
--- /dev/null
@@ -0,0 +1,11 @@
+# -*- mode:sh -*-
+
+function removalsarchive() {
+    cd ${webdir}
+    for ending in txt 822; do
+        mv removals.${ending} removals-${LASTYEAR}.${ending}
+        touch removals.${ending}
+        chmod g+w removals.${ending}
+        chown dak:ftpteam removals.${ending}
+    done
+}