#!/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}} 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 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}} 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 "" echo "Please adjust the nginx config" echo "An example file was created at /etc/nginx/sites-available/nginx_example_moin_{{cookiecutter.directory_name}}" echo "Don't forget to restart/reload uwsgi and nginx" echo ""