From b4774d26794679048730ee5d86e3b5903fb3e320 Mon Sep 17 00:00:00 2001 From: Holger Frey Date: Wed, 13 Dec 2017 11:54:20 +0100 Subject: [PATCH] changed name of resulting nginx config file --- hooks/post_gen_project.sh | 6 +++--- ...irectory_name}} => moin_{{cookiecutter.directory_name}}} | 0 2 files changed, 3 insertions(+), 3 deletions(-) rename {{cookiecutter.directory_name}}/{nginx_example_moin_{{cookiecutter.directory_name}} => moin_{{cookiecutter.directory_name}}} (100%) diff --git a/hooks/post_gen_project.sh b/hooks/post_gen_project.sh index f3be118..da120fd 100644 --- a/hooks/post_gen_project.sh +++ b/hooks/post_gen_project.sh @@ -1,6 +1,6 @@ #!/bin/sh -mv /tmp/cookiecutter/{{cookiecutter.directory_name}}/nginx_example_moin_{{cookiecutter.directory_name}} /etc/nginx/sites-available/nginx_example_moin_{{cookiecutter.directory_name}} +mv /tmp/cookiecutter/{{cookiecutter.directory_name}}/moin_{{cookiecutter.directory_name}} /etc/nginx/sites-available/moin_{{cookiecutter.directory_name}} mv /tmp/cookiecutter/{{cookiecutter.directory_name}}/{{cookiecutter.directory_name}}.py /var/www/moin/config/{{cookiecutter.directory_name}}.py chown www-data:www-data /var/www/moin/config/{{cookiecutter.directory_name}}.py @@ -16,7 +16,7 @@ echo "" echo "You'll need to add the following line to /var/www/moin/config/farmconfig.py" echo ' ("{{cookiecutter.directory_name}}", r"^https?://{{cookiecutter.domain}}(:8080)?/.*")' echo "" -echo "Please adjust the nginx config" -echo "An example file was created at /etc/nginx/sites-available/nginx_example_moin_{{cookiecutter.directory_name}}" +echo "An nginx config was created at /etc/nginx/sites-available/moin_{{cookiecutter.directory_name}}" +echo "Activate the config by creating a symbolic link in /etc/nginx/sites-enabled/" echo "Don't forget to restart/reload uwsgi and nginx" echo "" diff --git a/{{cookiecutter.directory_name}}/nginx_example_moin_{{cookiecutter.directory_name}} b/{{cookiecutter.directory_name}}/moin_{{cookiecutter.directory_name}} similarity index 100% rename from {{cookiecutter.directory_name}}/nginx_example_moin_{{cookiecutter.directory_name}} rename to {{cookiecutter.directory_name}}/moin_{{cookiecutter.directory_name}}