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-25 13:17:45 +0000 |
commit | 6e12e893a610516e3d6a4defc35ca26be9db7348 (patch) | |
tree | 17ab35737e43fd0012701a5b64cb70e32a8f1796 | |
parent | 82b292cc6671314f13de7b2abc5eb95cbc427a2a (diff) | |
download | trove-setup-6e12e893a610516e3d6a4defc35ca26be9db7348.tar.gz |
Add a systemd unit to run the repo creation script
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..155c667 --- /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] + +ExecStart=/usr/share/trove/releases-repo-migration.sh +Restart=no |