Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/web-scripts
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-04-11 16:48:09 +0200
committerErich Eckner <git@eckner.net>2018-04-11 16:48:09 +0200
commit7e8a1abfd39586cdaecdfeacd9a7349115b45247 (patch)
treebef3ff66104457ab7056e73bf4698bb7b9cb35ea /web-scripts
parent044f83dea8fa8a4d3ca4fe7c0dfa54b64c1c382c (diff)
web-scripts: unify mysql user (http -> webserver)
Diffstat (limited to 'web-scripts')
-rw-r--r--web-scripts/build-slaves.php2
-rw-r--r--web-scripts/packages.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/web-scripts/build-slaves.php b/web-scripts/build-slaves.php
index 1853bbe..b6afc2d 100644
--- a/web-scripts/build-slaves.php
+++ b/web-scripts/build-slaves.php
@@ -1,7 +1,7 @@
<html><head><title>list of build slaves</title></head><body>
<?php
- $conn = new mysqli("localhost","http","http","buildmaster");
+ $conn = new mysqli("localhost","webserver","empty","buildmaster");
if ($conn->connect_error) {
die("Connection to mysql database failed: " . $conn->connect_error);
}
diff --git a/web-scripts/packages.php b/web-scripts/packages.php
index b8b5dda..b7c0196 100644
--- a/web-scripts/packages.php
+++ b/web-scripts/packages.php
@@ -1,11 +1,11 @@
<?php
- $mysql = new mysqli("localhost", "http", "http");
+ $mysql = new mysqli("localhost", "webserver", "empty", "buildmaster");
if ($mysql->connect_error) {
die("Connection to mysql database failed: " . $mysql->connect_error);
}
- $result = $mysql -> query("SELECT * FROM buildmaster.binary_packages");
+ $result = $mysql -> query("SELECT * FROM `binary_packages`");
if ($result -> num_rows > 0) {
while($row = $result->fetch_assoc()) {
foreach ($row as $key => $val) {