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}}