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-24 11:32:25 +0000 |
commit | 5147d178d401d6818db36726f4b0d78235053011 (patch) | |
tree | e04b05f6692377e346ec22844ebacb089117e228 | |
parent | ccc041cd88cd0153418936abc332ef8951ca6fee (diff) | |
download | trove-setup-baserock/adamcoldrick/binary-delivery.tar.gz |
Add a systemd unit to run the repo creation scriptbaserock/adamcoldrick/binary-delivery
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..cac3dd8 --- /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 +Requires=network.target +After=network.target +Requires=opensshd.service +After=opensshd.service +Requires=trove-early-setup.service +After=trove-early-setup.service + +[Service] + +ExecStart=$PREFIX/share/trove/releases-repo-migration.sh +Restart=No |