diff options
author | Adam Coldrick <adam.coldrick@codethink.co.uk> | 2014-03-25 13:13:19 +0000 |
---|---|---|
committer | Adam Coldrick <adam.coldrick@codethink.co.uk> | 2014-03-26 16:59:57 +0000 |
commit | fc0b3c124729eb2ea7f4a9ba738ff9c5f13dca4b (patch) | |
tree | 1699b827d8235aef7071feedd27ed4b7199690e8 | |
parent | 0ed129b7644d080ddab8447b183e666623563e6b (diff) | |
download | definitions-fc0b3c124729eb2ea7f4a9ba738ff9c5f13dca4b.tar.gz |
Make trove.configure perform required substitutionsbaserock/adamcoldrick/binary-delivery-v3
Since we added releases-repo-migration.sh and a systemd unit to call it,
and both of these need to know the Trove ID, add them to the command that
performs substitutions in trove.configure.
-rwxr-xr-x | trove.configure | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/trove.configure b/trove.configure index a1abae97..2f943ff3 100755 --- a/trove.configure +++ b/trove.configure @@ -80,7 +80,9 @@ sed -f "$ROOT"/etc/trove-setup.sed -i \ "$ROOT"/etc/lorry.conf \ "$ROOT"/usr/share/gitano/skel/gitano-admin/*/*.lace \ "$ROOT"/usr/share/gitano/skel/gitano-admin/*/*.lua \ - "$ROOT"/usr/share/gitano/skel/gitano-admin/users/*/user.conf + "$ROOT"/usr/share/gitano/skel/gitano-admin/users/*/user.conf \ + "$ROOT"/usr/share/trove-setup/releases-repo-migration.sh \ + "$ROOT"/usr/lib/systemd/system/releases-repo-migration.service ########################################################################## @@ -94,6 +96,13 @@ cat <<EOF >> "$ROOT/etc/hosts" EOF ########################################################################## + +# create a symlink in /var/www/htdocs to what will be the rsync area of +# the releases repository +ln -s "/home/git/repos/$TROVE_ID/site/releases.git/rsync" \ + "$ROOT/var/www/htdocs/releases" + +########################################################################## # Configuration of trove-early-setup # # We configure trove-early-setup so that it runs at first boot of an initial |