Browse Source

adding smaller bugfixes, change letsencrpty

release/0.1
Björn 4 years ago
parent
commit
0241e497a5
3 changed files with 17 additions and 4 deletions
  1. +2
    -0
      README.md
  2. +14
    -3
      app/Commands/LetsEncryptInstallCommand.php
  3. +1
    -1
      resources/nginx/nginx.blade.php

+ 2
- 0
README.md View File

@ -33,6 +33,8 @@ git clone https://gitea.tentakelfabrik.de/Tentakelfabrik/mcp.git
```bash
cd mcp
sudo ./install.sh
composer install
```
## License


+ 14
- 3
app/Commands/LetsEncryptInstallCommand.php View File

@ -40,12 +40,23 @@ class LetsEncryptInstallCommand extends Command
{
$this->info('LetsEncrypt installing...');
$output = [];
exec('apt update 2>&1', $output);
exec('apt-get install software-properties-common 2>&1', $output);
exec('apt install software-properties-common 2>&1', $output);
// @TODO apt add a Warning for no good, in a later version output will be scanned for helpfull infos
$this->line(implode("\n", Install::filterAptMessages($output)));
$output = [];
exec('add-apt-repository universe 2>&1', $output);
exec('add-apt-repository ppa:certbot/certbot 2>&1', $output);
exec('apt-get update 2>&1', $output);
exec('apt-get install certbot python3-certbot-nginx 2>&1', $output);
// @TODO apt add a Warning for no good, in a later version output will be scanned for helpfull infos
$this->line(implode("\n", Install::filterAptMessages($output)));
$output = [];
exec('apt update 2>&1', $output);
exec('apt install certbot python3-certbot-nginx 2>&1', $output);
// @TODO apt add a Warning for no good, in a later version output will be scanned for helpfull infos
$this->line(implode("\n", Install::filterAptMessages($output)));


+ 1
- 1
resources/nginx/nginx.blade.php View File

@ -34,7 +34,7 @@ http {
error_log /var/log/nginx.error_log warn;
# no logging for 3XX
map \$status \$loggable {
map $status $loggable {
~^[3] 0;
default 1;
}


Loading…
Cancel
Save