diff --git a/hooks/post_gen_project.sh b/hooks/post_gen_project.sh index a53f681..f3be118 100644 --- a/hooks/post_gen_project.sh +++ b/hooks/post_gen_project.sh @@ -1,12 +1,14 @@ #!/bin/sh -command 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}}/nginx_example_moin_{{cookiecutter.directory_name}} /etc/nginx/sites-available/nginx_example_moin_{{cookiecutter.directory_name}} -command mv /tmp/cookiecutter/{{cookiecutter.directory_name}}/{{cookiecutter.directory_name}}.py /var/www/moin/config/{{cookiecutter.directory_name}}.py -command chown www-data:www-data /var/www/moin/config/{{cookiecutter.directory_name}}.py +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 -command mv /tmp/cookiecutter/{{cookiecutter.directory_name}} /var/www/moin/wikis/{{cookiecutter.directory_name}} -command chown -R www-data:www-data /var/www/moin/wikis/{{cookiecutter.directory_name}} +mv /tmp/cookiecutter/{{cookiecutter.directory_name}} /var/www/moin/wikis/{{cookiecutter.directory_name}} +chown -R www-data:www-data /var/www/moin/wikis/{{cookiecutter.directory_name}} + +rm -rf /tmp/cookiecutter echo "" echo "The wiki was created"