-
Notifications
You must be signed in to change notification settings - Fork 11
/
update.php
executable file
·34 lines (33 loc) · 1.27 KB
/
update.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
include ("header.php");
include ("pass.php");
$walletDir = "/home/stakebox/wallets/".$currentWallet;
?>
<div style="padding: 5px 30px 0px;">
<div class="row">
<div class="col-lg-12">
<b>Nav Pi User Interface</b><br /><br />
<form action="update" method="POST"><input type="hidden">
<div class="input-group">
<button class='btn btn-default' type="submit" name="status" value="webui">Update WebUI</button>
</div><!-- /input-group -->
</form><br />
<?php
$status = $_POST["status"];
if ($status == "webui"){
echo exec("cd /home/stakebox/UI && /usr/bin/git pull 2>&1");
echo "<br /><br />";
}
?>
</div><!-- /.col-lg-2 -->
</div><!-- /.row -->
<div class="row">
<div class="col-lg-12">
<b>NavCoin Core</b><br /><br />
This device should automatically check for new versions of the NavCoin Core wallet and update from github. If you want to run the updater manually, please run the following in the navpi terminal window.
<br /><br /><pre>sudo /home/stakebox/UI/libs/updater.sh</pre>
</div>
</div>
</div>
</div>
<?php include ("footer.php"); ?>