summaryrefslogtreecommitdiffstats
path: root/scripts/aurblup/aurblup-wrapper
blob: b056030d65af4b89a80d97e02d907d88509338f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/php
<?php
$dir = $argv[1];

if (empty($dir)) {
	echo "Please specify AUR directory.\n";
	exit;
}

set_include_path(get_include_path() . PATH_SEPARATOR . "$dir/lib");
include("config.inc.php");

exec($dir . "/../scripts/aurblup/aurblup " .
	"-S /var/run/mysqld/mysqld.sock " .
	"-u " . escapeshellarg(AUR_db_user) . " " .
	"-p " . escapeshellarg(AUR_db_pass) . " " .
	"-D " . escapeshellarg(AUR_db_name));