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 13:23:06 +0000 |
commit | a0f9916fddd58b44cb79283bee72a2f9d9817c2a (patch) | |
tree | a96bff144e941f6685761966bb19d8df9caf7365 | |
parent | 11c763919f07665280907f5deecf3d0c242823bd (diff) | |
download | trove-setup-a0f9916fddd58b44cb79283bee72a2f9d9817c2a.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..a4cf471 --- /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=/bin/su -c "/usr/share/trove/releases-repo-migration.sh" - git +Restart=no |