Fix the permission check in pkgbase_adopt()
[aur.git] / INSTALL
blob2a67f9b6a9215dd41dbf08649f2061cebc4ba7e5
1 Setup on Arch Linux
2 ===================
4 1) Clone the AUR project:
6    $ cd /srv/http/
7    $ git clone git://projects.archlinux.org/aurweb.git
9 2) Setup a web server with PHP and MySQL. Configure the web server to redirect
10    all URLs to /index.php/foo/bar/. The following block can be used with nginx:
12     location ~ .* {
13         rewrite ^/(.*)$ /index.php/$1 last;
14     }
16 3) Copy conf/config.proto to conf/config and adjust the configuration.
18 4) Create a new MySQL database and a user and import the AUR SQL schema:
20     $ mysql -uaur -p AUR </srv/http/aurweb/schema/aur-schema.sql
22 5) Generate templates for new Git repositories:
24     $ /srv/http/aurweb/scripts/git-integration/gen-templates.py
26 6) Create a new user:
28     # useradd -U -d /srv/http/aurweb -c 'AUR user' aur
30 7) Install the git-auth wrapper script:
32     # cd /srv/http/aurweb/scripts/git-integration/
33     # cp git-auth.sh /usr/local/bin/aur-git-auth
34     # chmod 755 /usr/local/bin/aur-git-auth
36 8) Configure sshd(8) for the AUR. Add the following lines at the end of your
37    sshd_config(5) and restart the sshd. Note that OpenSSH 6.9 or newer is
38    needed!
40     Match User aur
41         PasswordAuthentication no
42         AuthorizedKeysCommand /usr/local/bin/aur-git-auth "%t" "%k"
43         AuthorizedKeysCommandUser aur