aboutsummaryrefslogtreecommitdiff
path: root/admin/api/getUbuntuUpgrades.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/api/getUbuntuUpgrades.php')
-rw-r--r--admin/api/getUbuntuUpgrades.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/admin/api/getUbuntuUpgrades.php b/admin/api/getUbuntuUpgrades.php
index dcf06ce..7da6259 100644
--- a/admin/api/getUbuntuUpgrades.php
+++ b/admin/api/getUbuntuUpgrades.php
@@ -1,10 +1,10 @@
-<?php
-
-require_once $_SERVER['DOCUMENT_ROOT'] . "/admin/private/header.api.php";
-
-exec("bash -c \"sudo do-release-upgrade -c | grep 'New release'\"", $ret);
-if (count($ret) === 1) {
- echo("<b>Ubuntu " . explode("'", $ret[0])[1] . "</b> is available, use <code>do-release-upgrade</code> to upgrade");
-} else {
- echo("This server is running the latest version of Ubuntu");
+<?php
+
+require_once $_SERVER['DOCUMENT_ROOT'] . "/admin/private/header.api.php";
+
+exec("bash -c \"sudo do-release-upgrade -c | grep 'New release'\"", $ret);
+if (count($ret) === 1) {
+ echo("<b>Ubuntu " . explode("'", $ret[0])[1] . "</b> is available, use <code>do-release-upgrade</code> to upgrade");
+} else {
+ echo("This server is running the latest version of Ubuntu");
} \ No newline at end of file