Commit c9ccd8df authored by Jos Schellevis's avatar Jos Schellevis

Unbound start fixed and glyphicon typo fixed, fixes #9

parent d2fa9a54
...@@ -412,13 +412,13 @@ function do_as_unbound_user($cmd) { ...@@ -412,13 +412,13 @@ function do_as_unbound_user($cmd) {
mwexec("/usr/sbin/unbound -c {$g['unbound_chroot_path']}/unbound.conf"); mwexec("/usr/sbin/unbound -c {$g['unbound_chroot_path']}/unbound.conf");
break; break;
case "stop": case "stop":
mwexec("echo '/usr/sbin/unbound-control stop' | /usr/bin/su -m unbound", true); mwexec("chroot -u unbound -g unbound / /usr/sbin/unbound-control stop", true);
break; break;
case "unbound-anchor": case "unbound-anchor":
mwexec("echo '/usr/sbin/unbound-anchor -a {$g['unbound_chroot_path']}/root.key' | /usr/bin/su -m unbound", true); mwexec("chroot -u unbound -g unbound / /usr/sbin/unbound-anchor -a {$g['unbound_chroot_path']}/root.key", true);
break; break;
case "unbound-control-setup": case "unbound-control-setup":
mwexec("echo '/usr/sbin/unbound-control-setup -d {$g['unbound_chroot_path']}' | /usr/bin/su -m unbound", true); mwexec("chroot -u unbound -g unbound / /usr/sbin/unbound-control-setup -d {$g['unbound_chroot_path']}", true);
break; break;
default: default:
break; break;
......
...@@ -386,7 +386,7 @@ function show_advanced_dns() { ...@@ -386,7 +386,7 @@ function show_advanced_dns() {
<table border="0" cellspacing="0" cellpadding="1" summary="add"> <table border="0" cellspacing="0" cellpadding="1" summary="add">
<tr> <tr>
<td width="17"></td> <td width="17"></td>
<td valign="middle"><a href="services_unbound_host_edit.php" class="btn btn-default btn-xs"><span class="glypicon glyphicon-plus"></span></a></td> <td valign="middle"><a href="services_unbound_host_edit.php" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-plus"></span></a></td>
</tr> </tr>
</table> </table>
</td> </td>
...@@ -410,8 +410,8 @@ function show_advanced_dns() { ...@@ -410,8 +410,8 @@ function show_advanced_dns() {
<td valign="middle" class="list nowrap"> <td valign="middle" class="list nowrap">
<table border="0" cellspacing="0" cellpadding="1" summary="icons"> <table border="0" cellspacing="0" cellpadding="1" summary="icons">
<tr> <tr>
<td valign="middle"><a href="services_unbound_host_edit.php?id=<?=$i;?>" class="btn btn-default btn-xs"><span class="glypicon glyphicon-pencil"></span></a></td> <td valign="middle"><a href="services_unbound_host_edit.php?id=<?=$i;?>" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-pencil"></span></a></td>
<td><a href="services_unbound.php?type=host&amp;act=del&amp;id=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to delete this host?");?>')" class="btn btn-default btn-xs"><span class="glypicon glyphicon-remove"></span></a></td> <td><a href="services_unbound.php?type=host&amp;act=del&amp;id=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to delete this host?");?>')" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-remove"></span></a></td>
</tr> </tr>
</table> </table>
</tr> </tr>
...@@ -450,7 +450,7 @@ function show_advanced_dns() { ...@@ -450,7 +450,7 @@ function show_advanced_dns() {
<table border="0" cellspacing="0" cellpadding="1" summary="add"> <table border="0" cellspacing="0" cellpadding="1" summary="add">
<tr> <tr>
<td width="17" height="17"></td> <td width="17" height="17"></td>
<td><a href="services_unbound_domainoverride_edit.php" class="btn btn-default btn-xs"><span class="glypicon glyphicon-plus"></span></a></td> <td><a href="services_unbound_domainoverride_edit.php" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-plus"></span></a></td>
</tr> </tr>
</table> </table>
</td> </td>
...@@ -472,8 +472,8 @@ function show_advanced_dns() { ...@@ -472,8 +472,8 @@ function show_advanced_dns() {
<td valign="middle" class="list nowrap"> <td valign="middle" class="list nowrap">
<table border="0" cellspacing="0" cellpadding="1" summary="icons"> <table border="0" cellspacing="0" cellpadding="1" summary="icons">
<tr> <tr>
<td valign="middle"><a href="services_unbound_domainoverride_edit.php?id=<?=$i;?>" class="btn btn-default btn-xs"><span class="glypicon glyphicon-pencil"></span></a></td> <td valign="middle"><a href="services_unbound_domainoverride_edit.php?id=<?=$i;?>" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-pencil"></span></a></td>
<td valign="middle"><a href="services_unbound.php?act=del&amp;type=doverride&amp;id=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to delete this domain override?");?>')" class="btn btn-default btn-xs"><span class="glypicon glyphicon-remove"></span></a></td> <td valign="middle"><a href="services_unbound.php?act=del&amp;type=doverride&amp;id=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to delete this domain override?");?>')" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-remove"></span></a></td>
</tr> </tr>
</table> </table>
</td> </td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment