-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,8 @@ | ||
<div class="box"> | ||
<h3>Find out more about VVV</h3> | ||
<?php | ||
if ( file_exists( '/vagrant/version' ) ) { | ||
// note that at this time we cannot check for updates to be 100% sure, | ||
// that requires a network connection which isn't always present | ||
?> | ||
<p>You're running VVV <code>v<?php echo trim( strip_tags( file_get_contents( '/vagrant/version' ) ) ); ?></code>, <strong>if</strong> there are updates available you can run <code>git pull</code> and <code>vagrant up --provision</code> to apply them.</p> | ||
<?php | ||
} | ||
$distro_version = exec( 'lsb_release -ds' ); | ||
?> | ||
<p>This VVV instance is inside a <?php echo $distro_version; ?> virtual machine.</p> | ||
<p>This VVV instance is inside a <?php echo htmlspecialchars( $distro_version ); ?> virtual machine.</p> | ||
<a class="button" href="https://github.com/varying-vagrant-vagrants/vvv/" target="_blank">View the code on GitHub</a> | ||
</div> |