diff options
author | Alec Leamas <leamas.alec@gmail.com> | 2011-01-10 01:31:55 +0300 |
---|---|---|
committer | Alec Leamas <leamas.alec@gmail.com> | 2011-01-10 01:38:36 +0300 |
commit | e09771d9b440c14302c3ad265ee7c12afc936d48 (patch) | |
tree | b0dc61b08aa567e68d8e8fceb7c3e0750eea9325 /script | |
parent | e01fb62eeb5ee84200ba93dd7cc543c0d25d2dc4 (diff) |
Create a separate webfinger service.
Diffstat (limited to 'script')
-rwxr-xr-x | script/server | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/script/server b/script/server index 5fea4a2cf..1a00d5f38 100755 --- a/script/server +++ b/script/server @@ -136,6 +136,15 @@ if [ ! -e public/source.tar.gz ]; then exit 65 fi +# create static public/well-known/host-meta if required +if [[ -w public && + (! -e public/well-known/host-meta || + public/well-known/host-meta -ot config/app_config.yml) ]] +then + bundle exec erb -r config/environment.rb app/views/publics/host_meta.erb \ + 2>/dev/null >public/well-known/host-meta +fi + # Precache jammit assets if [[ -w public && ! -e 'public/stylesheets/application.css' ]]; then if [ "$INIT_PUBLIC" != 'no' ]; then |