Fix the eula stuff

This commit is contained in:
Henry Whitaker
2021-09-10 18:38:26 +01:00
parent 0384f61f15
commit 0c8e074a86
3 changed files with 4 additions and 4 deletions

View File

@@ -39,6 +39,6 @@ class AcceptEULACommand extends Command
public function handle()
{
$this->info('Acceping EULA');
shell_exec(config('speedtest.home') . ' && timeout 3s ' . app_path() . '/Bin/speedtest --accept-license --accept-gdpr');
shell_exec(config('speedtest.home') . ' && timeout 10s ' . app_path() . '/Bin/speedtest --accept-license --accept-gdpr');
}
}

View File

@@ -23,7 +23,7 @@ return [
|--------------------------------------------------------------------------
*/
'home' => 'HOME=' . base_path() . DIRECTORY_SEPARATOR,
'home' => 'HOME=/config',
/*
|--------------------------------------------------------------------------

View File

@@ -26,10 +26,10 @@ else
tar zxvf speedtest.tgz > /dev/null
cp speedtest /site/app/Bin/
HOME=/config && timeout 10s s6-setuidgid abc /site/artisan speedtest:eula > /dev/null
HOME=/config && s6-setuidgid abc /site/artisan speedtest:eula > /dev/null
HOME=/root
else
HOME=/config && timeout 10s s6-setuidgid abc /config/www/artisan speedtest:eula > /dev/null
HOME=/config && s6-setuidgid abc /config/www/artisan speedtest:eula > /dev/null
HOME=/root
fi
fi