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 17:14:00 +0000 |
commit | c08e8cc5045e9a7cb639fe5032f991bf5c29e270 (patch) | |
tree | 17341d147df6d7da9d44cbf139ff6c3ee14cf5e7 /units/releases-repo-migration.service | |
parent | bf938ff357e4e3fed956af1f7e24945d3f7f4e36 (diff) | |
download | trove-setup-c08e8cc5045e9a7cb639fe5032f991bf5c29e270.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.
Diffstat (limited to 'units/releases-repo-migration.service')
-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 |