From 139b7ff38ec5b04e63a3c921664392a204f7c498 Mon Sep 17 00:00:00 2001 From: Holger Frey Date: Tue, 12 Dec 2017 17:30:47 +0100 Subject: [PATCH] Added chown commands again *sigh* --- 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 04c7d25..f3be118 100644 --- a/hooks/post_gen_project.sh +++ b/hooks/post_gen_project.sh @@ -3,10 +3,10 @@ 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}}/{{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 2>/dev/null +chown www-data:www-data /var/www/moin/config/{{cookiecutter.directory_name}}.py 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}} 2>/dev/null +chown -R www-data:www-data /var/www/moin/wikis/{{cookiecutter.directory_name}} rm -rf /tmp/cookiecutter