Restructure scripts

* Move scripts/git-integration/ to git-interface/.
* Move scripts/aurblup/aurblup.py to scripts/aurblup.py.

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
Lukas Fleischer 2015-06-01 23:36:14 +02:00
parent 451e60d91d
commit 10ecd3982d
9 changed files with 12 additions and 12 deletions

View file

@ -28,12 +28,12 @@ Setup on Arch Linux
# mkdir /srv/http/aurweb/aur.git/ # mkdir /srv/http/aurweb/aur.git/
# cd /srv/http/aurweb/aur.git/ # cd /srv/http/aurweb/aur.git/
# git init --bare # git init --bare
# ln -s ../../scripts/git-integration/git-update.py hooks/update # ln -s ../../git-interface/git-update.py hooks/update
# chown -R aur . # chown -R aur .
7) Install the git-auth wrapper script: 7) Install the git-auth wrapper script:
# cd /srv/http/aurweb/scripts/git-integration/ # cd /srv/http/aurweb/git-interface/
# cp git-auth.sh /usr/local/bin/aur-git-auth # cp git-auth.sh /usr/local/bin/aur-git-auth
# chmod 755 /usr/local/bin/aur-git-auth # chmod 755 /usr/local/bin/aur-git-auth

View file

@ -30,18 +30,18 @@ auto_delete_age = 86400
[auth] [auth]
valid-keytypes = ssh-rsa ssh-dss ecdsa-sha2-nistp256 ecdsa-sha2-nistp384 ecdsa-sha2-nistp521 ssh-ed25519 valid-keytypes = ssh-rsa ssh-dss ecdsa-sha2-nistp256 ecdsa-sha2-nistp384 ecdsa-sha2-nistp521 ssh-ed25519
username-regex = [a-zA-Z0-9]+[.\-_]?[a-zA-Z0-9]+$ username-regex = [a-zA-Z0-9]+[.\-_]?[a-zA-Z0-9]+$
git-serve-cmd = /srv/http/aurweb/scripts/git-integration/git-serve.py git-serve-cmd = /srv/http/aurweb/git-interface/git-serve.py
ssh-options = no-port-forwarding,no-X11-forwarding,no-pty ssh-options = no-port-forwarding,no-X11-forwarding,no-pty
[serve] [serve]
repo-path = /srv/http/aurweb/aur.git/ repo-path = /srv/http/aurweb/aur.git/
repo-regex = [a-z0-9][a-z0-9.+_-]*$ repo-regex = [a-z0-9][a-z0-9.+_-]*$
template-path = /srv/http/aurweb/scripts/git-integration/templates/ template-path = /srv/http/aurweb/git-interface/templates/
git-update-hook = /srv/http/aurweb/scripts/git-integration/git-update.py git-update-hook = /srv/http/aurweb/git-interface/git-update.py
git-shell-cmd = /usr/bin/git-shell git-shell-cmd = /usr/bin/git-shell
ssh-cmdline = ssh aur@aur.archlinux.org ssh-cmdline = ssh aur@aur.archlinux.org
[aurblup] [aurblup]
db-path = /srv/http/aurweb/scripts/aurblup/ db-path = /srv/http/aurweb/aurblup/
sync-dbs = core extra community multilib testing community-testing sync-dbs = core extra community multilib testing community-testing
servers = ftp://mirrors.kernel.org/archlinux/%s/os/x86_64 servers = ftp://mirrors.kernel.org/archlinux/%s/os/x86_64

View file

@ -7,7 +7,7 @@ import re
import sys import sys
config = configparser.RawConfigParser() config = configparser.RawConfigParser()
config.read(os.path.dirname(os.path.realpath(__file__)) + "/../../conf/config") config.read(os.path.dirname(os.path.realpath(__file__)) + "/../conf/config")
aur_db_host = config.get('database', 'host') aur_db_host = config.get('database', 'host')
aur_db_name = config.get('database', 'name') aur_db_name = config.get('database', 'name')

3
git-interface/git-auth.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
/srv/http/aurweb/git-interface/git-auth.py "$1" "$2"

View file

@ -9,7 +9,7 @@ import shlex
import sys import sys
config = configparser.RawConfigParser() config = configparser.RawConfigParser()
config.read(os.path.dirname(os.path.realpath(__file__)) + "/../../conf/config") config.read(os.path.dirname(os.path.realpath(__file__)) + "/../conf/config")
aur_db_host = config.get('database', 'host') aur_db_host = config.get('database', 'host')
aur_db_name = config.get('database', 'name') aur_db_name = config.get('database', 'name')

View file

@ -11,7 +11,7 @@ import sys
import aurinfo import aurinfo
config = configparser.RawConfigParser() config = configparser.RawConfigParser()
config.read(os.path.dirname(os.path.realpath(__file__)) + "/../../conf/config") config.read(os.path.dirname(os.path.realpath(__file__)) + "/../conf/config")
aur_db_host = config.get('database', 'host') aur_db_host = config.get('database', 'host')
aur_db_name = config.get('database', 'name') aur_db_name = config.get('database', 'name')

View file

@ -1,3 +0,0 @@
#!/bin/sh
/srv/http/aurweb/scripts/git-integration/git-auth.py "$1" "$2"