Skip to content
Permalink
Browse files

Output current progress during build

  • Loading branch information...
NEMS Linux
NEMS Linux committed Feb 23, 2019
1 parent b01e602 commit 63e0ab410aeb6cd815f13bff4642f42c87895c18
Showing with 9 additions and 0 deletions.
  1. +9 −0 init.php
@@ -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>

0 comments on commit 63e0ab4

Please sign in to comment.
You can’t perform that action at this time.