Skip to content

Commit

Permalink
aguia-pescadora-bravo (#16), botpress (#55): criado usuario de sistem…
Browse files Browse the repository at this point in the history
…a botpress
  • Loading branch information
fititnt committed Jun 1, 2019
1 parent b00174a commit 89c7381
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion logbook/aguia-pescadora-bravo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -642,9 +642,22 @@ sudo systemctl reload nginx
sudo certbot --nginx -d compilebot.api.apb.etica.ai

sudo -u compilebot echo "compilebot <br>Servidor comunitario: http://aguia-pescadora-bravo.etica.ai <br>Arquivo: /home2/compilebot/web/api/index.php <br><?php echo 'whoiam:' . exec('whoami'); phpinfo(); ?>" > /home2/compilebot/web/api/index.php

sudo chown compilebot:compilebot -R /home2/compilebot

#### botpress ------------------------------------------------------------------
# ISSUE: Botpress #55 https://github.com/fititnt/cplp-aiops/issues/54
# ISSUE: Chatbots / Chatops (discussão geral) #54 https://github.com/fititnt/cplp-aiops/issues/54

sudo adduser botpress
sudo chsh -s /usr/bin/fish botpress

# Apaga senha do usuario (gerencie usando sudo)
sudo passwd -d botpress

sudo mkdir /home2/botpress/
sudo chown botpress:botpress /home2/botpress
sudo chmod 751 -R /home2/botpress

### usuariodeteste -------------------------------------------------------------
# Usuario sem senha, criado para permitir testes. Usuarios com poder de sudo
# poderão acessar esta conta
Expand Down

0 comments on commit 89c7381

Please sign in to comment.