From 86d462b5786091a7233427adf59341b278a937ac Mon Sep 17 00:00:00 2001 From: Holger Frey Date: Tue, 12 Dec 2017 16:47:26 +0100 Subject: [PATCH] Test of postgen hook --- hooks/post_gen_project.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hooks/post_gen_project.sh b/hooks/post_gen_project.sh index f935b7d..7092e06 100644 --- a/hooks/post_gen_project.sh +++ b/hooks/post_gen_project.sh @@ -1,6 +1,6 @@ #!/bin/sh -mv {{cookiecutter.directory_name}}/nginx_example_moin_{{cookiecutter.directory_name}} /etc/nginx/sites-available/{{cookiecutter.directory_name}} +echo "mv {{cookiecutter.directory_name}}/nginx_example_moin_{{cookiecutter.directory_name}} /etc/nginx/sites-available/{{cookiecutter.directory_name}}" mv {{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 @@ -12,7 +12,7 @@ echo "" echo "The wiki was created" 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 ' ("{{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/{{cookiecutter.directory_name}}"