summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Coldrick <adam.coldrick@codethink.co.uk>2014-03-24 10:25:24 +0000
committerAdam Coldrick <adam.coldrick@codethink.co.uk>2014-03-27 10:00:31 +0000
commit2b24bfe7f1cbcb460a882e24940f8f5fead5a8a6 (patch)
tree1da427dfd78b63dc535683ba328d6c28ba343d59
parentd0c541df1f929c75f62306956eb8b3cea5a121e3 (diff)
downloadtrove-setup-baserock/adamcoldrick/binary-delivery-v4.tar.gz
Add a systemd unit to run the repo creation scriptbaserock/adamcoldrick/binary-delivery-v4
Add a systemd unit to check for the existence of the releases repository, and to run the script to create it if it doesn't exist.
-rw-r--r--units/releases-repo-migration.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/units/releases-repo-migration.service b/units/releases-repo-migration.service
new file mode 100644
index 0000000..1e161fb
--- /dev/null
+++ b/units/releases-repo-migration.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Create the ##PREFIX##/site/releases repository
+ConditionPathExists=!/home/git/repos/##PREFIX##/site/releases.git
+Requires=network.target
+After=network.target
+Requires=opensshd.service
+After=opensshd.service
+Requires=trove-early-setup.service
+After=trove-early-setup.service
+
+[Service]
+User=git
+ExecStart=/usr/share/trove-setup/releases-repo-migration.sh
+Restart=no