forked from urvishpatelce/lxd-app
fix
This commit is contained in:
5
add-container.php
Normal file
5
add-container.php
Normal file
@ -0,0 +1,5 @@
|
||||
<?php
|
||||
if (count($argv) !== 3) return;
|
||||
$config = json_decode(file_get_contents(__DIR__ . '/api/config.json'), true);
|
||||
$config[$argv[1]] = $argv[2];
|
||||
file_put_contents(__DIR__ . '/api/config.json', json_encode($config));
|
||||
Reference in New Issue
Block a user