diff options
author | Adam Coldrick <adam.coldrick@codethink.co.uk> | 2014-03-24 10:25:24 +0000 |
---|---|---|
committer | Adam Coldrick <adam.coldrick@codethink.co.uk> | 2014-03-26 16:52:44 +0000 |
commit | 979b48d944363fc1b971c9b8c893385f0fc683c1 (patch) | |
tree | d13f24d74de031f206fc16eceb2746a0434e0d52 | |
parent | 9f592d1a57c8ef584d3b6fab01948b60787e5da2 (diff) | |
download | trove-setup-baserock/adamcoldrick/binary-delivery-v3.tar.gz |
Add a systemd unit to run the repo creation scriptbaserock/adamcoldrick/binary-delivery-v3
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.service | 14 |
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 |