Skip to content

Commit

Permalink
Output current progress during build
Browse files Browse the repository at this point in the history
  • Loading branch information
NEMS Linux committed Feb 23, 2019
1 parent b01e602 commit 63e0ab4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions init.php
Expand Up @@ -83,14 +83,23 @@ function resizeIframe(obj) {

<div class="call-action-v1-box">
<div class="call-action-v1-in">
<?php
if (file_exists('/tmp/nems-build.cur')) {
$build_cur=trim(file_get_contents('/tmp/nems-build.cur'));
echo '<h3 class="color-light" style="font-weight: bold;">NEMS Linux ' . ver('nems') . ' is being compiled.</h3>';
echo '<p class="color-light">Current Build Script:<br /><em>' . $build_cur . '</em></p>';
} else {
?>
<h3 class="color-light" style="font-weight: bold;">Your NEMS server is not yet initialized.</h3>
<?php
if (ver('nems') < 1.4 || $platform->num == 0 || $platform->num == 1) {
echo '<p class="color-light">SSH to your NEMS server (' . $ip . ') and run:<br /><em>sudo nems-init</em></p>';
} else {
echo '<p class="color-light">SSH to your NEMS server (' . $ip . ') or <a href="https://' . $self->host . ':9090/system/terminal">open a browser-based terminal session</a> and run:<br /><em>sudo nems-init</em></p>';
}
}
?>

</div>
<div class="call-action-v1-in inner-btn page-scroll">
<a href="https://docs.nemslinux.com/commands/nems-init" class="btn-u btn-u-lg btn-brd btn-brd-width-2 btn-brd-hover btn-u-light btn-u-block">DOCUMENTATION</a>
Expand Down

0 comments on commit 63e0ab4

Please sign in to comment.