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-26 17:14:00 +0000
commitc08e8cc5045e9a7cb639fe5032f991bf5c29e270 (patch)
tree17341d147df6d7da9d44cbf139ff6c3ee14cf5e7
parentbf938ff357e4e3fed956af1f7e24945d3f7f4e36 (diff)
downloadtrove-setup-baserock/adamcoldrick/binary-delivery-v3-rebase.tar.gz
Add a systemd unit to run the repo creation scriptbaserock/adamcoldrick/binary-delivery-v3-rebase
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