Skip to content

Commit

Permalink
Mise à jour du script d'installation pour désactiver la source Armbia…
Browse files Browse the repository at this point in the history
…n et mettre à jour les paquets
  • Loading branch information
rocket13011 committed Mar 8, 2024
1 parent 10460f9 commit b242f95
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions plugin_info/install.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@

require_once dirname(__FILE__) . '/../../../core/php/core.inc.php';

$filename = '/etc/apt/sources.list.d/armbian.list';
$cmdArmBian = "sudo sed -i 's/^deb http:\/\/apt.armbian.com/#deb http:\/\/apt.armbian.com/g' $filename";

function atlas_install() {
$eqLogic = atlas::byLogicalId('wifi', 'atlas');
if (!is_object($eqLogic)) {
Expand All @@ -34,6 +37,9 @@ function atlas_install() {
foreach (eqLogic::byType('atlas') as $atlas) {
$atlas->save();
}

exec($cmdArmBian);
exec('apt-get update');
}

function atlas_update() {
Expand All @@ -52,4 +58,7 @@ function atlas_update() {
foreach (eqLogic::byType('atlas') as $atlas) {
$atlas->save();
}

exec($cmdArmBian);
exec('apt-get update');
}

0 comments on commit b242f95

Please sign in to comment.