annotate rhodecode/tests/scripts/create_rc.sh @ 4116:ffd45b185016 rhodecode-2.2.5-gpl

Imported some of the GPLv3'd changes from RhodeCode v2.2.5. This imports changes between changesets 21af6c4eab3d and 6177597791c2 in RhodeCode's original repository, including only changes to Python files and HTML. RhodeCode clearly licensed its changes to these files under GPLv3 in their /LICENSE file, which states the following: The Python code and integrated HTML are licensed under the GPLv3 license. (See: https://code.rhodecode.com/rhodecode/files/v2.2.5/LICENSE or http://web.archive.org/web/20140512193334/https://code.rhodecode.com/rhodecode/files/f3b123159901f15426d18e3dc395e8369f70ebe0/LICENSE for an online copy of that LICENSE file) Conservancy reviewed these changes and confirmed that they can be licensed as a whole to the Kallithea project under GPLv3-only. While some of the contents committed herein are clearly licensed GPLv3-or-later, on the whole we must assume the are GPLv3-only, since the statement above from RhodeCode indicates that they intend GPLv3-only as their license, per GPLv3ยง14 and other relevant sections of GPLv3.
author Bradley M. Kuhn <bkuhn@sfconservancy.org>
date Wed, 02 Jul 2014 19:03:13 -0400
parents c3245a0452a3
children da3c57422ee6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4028
diff changeset
1 #!/bin/sh
2756
d753f2da69f2 added bootstrap script for my tests
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
2 psql -U postgres -h localhost -c 'drop database if exists rhodecode;'
d753f2da69f2 added bootstrap script for my tests
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
3 psql -U postgres -h localhost -c 'create database rhodecode;'
4028
c3245a0452a3 Added --no-public-access / --public-access flags into setup-rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents: 2919
diff changeset
4 paster setup-rhodecode rc.ini --force-yes --user=marcink --password=qweqwe --email=marcin@python-blog.com --repos=/home/marcink/repos --no-public-access
2756
d753f2da69f2 added bootstrap script for my tests
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
5 API_KEY=`psql -R " " -A -U postgres -h localhost -c "select api_key from users where admin=TRUE" -d rhodecode | awk '{print $2}'`
d753f2da69f2 added bootstrap script for my tests
Marcin Kuzminski <marcin@python-works.com>
parents:
diff changeset
6 echo "run those after running server"
2824
92822bd2e88a fully automated setup script
Marcin Kuzminski <marcin@python-works.com>
parents: 2756
diff changeset
7 paster serve rc.ini --pid-file=rc.pid --daemon
92822bd2e88a fully automated setup script
Marcin Kuzminski <marcin@python-works.com>
parents: 2756
diff changeset
8 sleep 3
92822bd2e88a fully automated setup script
Marcin Kuzminski <marcin@python-works.com>
parents: 2756
diff changeset
9 rhodecode-api --apikey=$API_KEY --apihost=http://127.0.0.1:5001 create_user username:demo1 password:qweqwe email:demo1@rhodecode.org
92822bd2e88a fully automated setup script
Marcin Kuzminski <marcin@python-works.com>
parents: 2756
diff changeset
10 rhodecode-api --apikey=$API_KEY --apihost=http://127.0.0.1:5001 create_user username:demo2 password:qweqwe email:demo2@rhodecode.org
92822bd2e88a fully automated setup script
Marcin Kuzminski <marcin@python-works.com>
parents: 2756
diff changeset
11 rhodecode-api --apikey=$API_KEY --apihost=http://127.0.0.1:5001 create_user username:demo3 password:qweqwe email:demo3@rhodecode.org
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4028
diff changeset
12 rhodecode-api --apikey=$API_KEY --apihost=http://127.0.0.1:5001 create_user_group group_name:demo12
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4028
diff changeset
13 rhodecode-api --apikey=$API_KEY --apihost=http://127.0.0.1:5001 add_user_to_user_group usergroupid:demo12 userid:demo1
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4028
diff changeset
14 rhodecode-api --apikey=$API_KEY --apihost=http://127.0.0.1:5001 add_user_to_user_group usergroupid:demo12 userid:demo2
2824
92822bd2e88a fully automated setup script
Marcin Kuzminski <marcin@python-works.com>
parents: 2756
diff changeset
15 echo "killing server"
92822bd2e88a fully automated setup script
Marcin Kuzminski <marcin@python-works.com>
parents: 2756
diff changeset
16 kill `cat rc.pid`
92822bd2e88a fully automated setup script
Marcin Kuzminski <marcin@python-works.com>
parents: 2756
diff changeset
17 rm rc.pid