X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=setup%2Fcore-init.d%2F010_queues;fp=setup%2Fcore-init.d%2F010_queues;h=c00e13b9c1d682cd499ccb9ba0f97cb5c4fbbade;hb=890acc3c99565cfa61f24c75c49db4eeacc71fbb;hp=0000000000000000000000000000000000000000;hpb=2c3264544ddd44b4f90730296c909ac7d3b3fe03;p=dak.git diff --git a/setup/core-init.d/010_queues b/setup/core-init.d/010_queues new file mode 100755 index 00000000..c00e13b9 --- /dev/null +++ b/setup/core-init.d/010_queues @@ -0,0 +1,28 @@ +#!/bin/sh + +set -e +set -u + +echo "Creating core queues" + +QUEUEBASE="${DAKBASE}/queue" + +psql -c "INSERT INTO policy_queue (queue_name, path, perms, change_perms, + generate_metadata, stay_of_execution, send_to_build_queues) + VALUES ('unchecked', '${QUEUEBASE}/unchecked', '0660', '0660', + FALSE, 86400, FALSE)" >/dev/null + +psql -c "INSERT INTO policy_queue (queue_name, path, perms, change_perms, + generate_metadata, stay_of_execution, send_to_build_queues) + VALUES ('new', '${QUEUEBASE}/new', '0660', '0660', + FALSE, 86400, FALSE)" >/dev/null + +psql -c "INSERT INTO policy_queue (queue_name, path, perms, change_perms, + generate_metadata, stay_of_execution, send_to_build_queues) + VALUES ('newstage', '${QUEUEBASE}/newstage', '0660', '0660', + FALSE, 86400, FALSE)" >/dev/null + +psql -c "INSERT INTO policy_queue (queue_name, path, perms, change_perms, + generate_metadata, stay_of_execution, send_to_build_queues) + VALUES ('byhand', '${QUEUEBASE}/byhand', '0660', '0660', + FALSE, 86400, FALSE)" >/dev/null