Browse Source

stopping chown commands in post gen hook

with our current sshfs mount, a user / group can't be set on the wikis.
This might change when we move to NFS next year.
master
Holger Frey 7 years ago
parent
commit
70a6a1817e
  1. 4
      hooks/post_gen_project.sh

4
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}}/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 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 chown www-data:www-data /var/www/moin/config/{{cookiecutter.directory_name}}.py 2>/dev/null
mv /tmp/cookiecutter/{{cookiecutter.directory_name}} /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}} chown -R www-data:www-data /var/www/moin/wikis/{{cookiecutter.directory_name}} 2>/dev/null
rm -rf /tmp/cookiecutter rm -rf /tmp/cookiecutter

Loading…
Cancel
Save