aboutsummaryrefslogtreecommitdiff
path: root/admin/api/getUbuntuUpgrades.php
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-01-01 10:37:28 +0100
committerMinteck <contact@minteck.org>2022-01-01 10:37:28 +0100
commitef055e79855cf3be1ad5e1aa5f9ebad480062384 (patch)
treeff074b29a7a87c3ccfc3b10741bbe30cb28e103e /admin/api/getUbuntuUpgrades.php
parente3a79df6428799024eac64e9cffbb062317aeb95 (diff)
downloadmain-ef055e79855cf3be1ad5e1aa5f9ebad480062384.tar.gz
main-ef055e79855cf3be1ad5e1aa5f9ebad480062384.tar.bz2
main-ef055e79855cf3be1ad5e1aa5f9ebad480062384.zip
Bye furriesHEADtrunk
Diffstat (limited to 'admin/api/getUbuntuUpgrades.php')
-rw-r--r--admin/api/getUbuntuUpgrades.php10
1 files changed, 0 insertions, 10 deletions
diff --git a/admin/api/getUbuntuUpgrades.php b/admin/api/getUbuntuUpgrades.php
deleted file mode 100644
index ca49f38..0000000
--- a/admin/api/getUbuntuUpgrades.php
+++ /dev/null
@@ -1,10 +0,0 @@
-<?php
-
-require_once $_SERVER['DOCUMENT_ROOT'] . "/admin/private/header.api.php";
-
-exec("bash -c \"sudo mtsp-do-release-upgrade | grep 'New release'\"", $ret);
-if (count($ret) === 1) {
- echo(l("<b>Ubuntu " . explode("'", $ret[0])[1] . "</b> is available, use <code>do-release-upgrade</code> to upgrade", "<b>Ubuntu " . explode("'", $ret[0])[1] . "</b> est disponible, exécutez la commande <code>do-release-upgrade</code> pour effectuer la mise à niveau"));
-} else {
- echo(l("This server is running the latest version of Ubuntu", "Ce serveur exécute la dernière version d'Ubuntu"));
-} \ No newline at end of file