Commit 539c9528285caeada9e94e426eccfc6ffeb4a2dc
1 parent
e2614882
Exists in
master
Correção de problema de acesso 'Forbidden' após reinicialização do Vagrant
Showing
2 changed files
with
9 additions
and
21 deletions
Show diff stats
Vagrantfile
| ... | ... | @@ -24,7 +24,9 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| |
| 24 | 24 | # Every Vagrant virtual environment requires a box to build off of. |
| 25 | 25 | # config.vm.box_download_checksum = "76a2a61de2d89f6cfd4d795e57cc4406" |
| 26 | 26 | # config.vm.box_download_checksum_type = "md5" |
| 27 | - config.vm.box = "processoeletronico/centos-6.6" | |
| 27 | + # config.vm.box = "processoeletronico/centos-6.6" | |
| 28 | + # config.vm.box = "centos/7" | |
| 29 | + config.vm.box = "ubuntu/trusty64" | |
| 28 | 30 | |
| 29 | 31 | # Disable automatic box update checking. If you disable this, then |
| 30 | 32 | # boxes will only be checked for updates when the user runs |
| ... | ... | @@ -104,5 +106,5 @@ SCRIPT |
| 104 | 106 | config.vm.provision "shell", inline: "rm -rf /mnt/sei/ops/mysql/.tmp" |
| 105 | 107 | |
| 106 | 108 | # Inicialização dos containers em caso de reinicialização da máquina host |
| 107 | - config.vm.provision "shell", run: "always", inline: "docker start sei_db sei_www sei_jod sei_solr" | |
| 109 | + config.vm.provision "shell", run: "always", inline: "docker restart sei_solr sei_jod sei_db sei_www" | |
| 108 | 110 | end | ... | ... |
sei/entrypoint.sh
| ... | ... | @@ -3,20 +3,20 @@ |
| 3 | 3 | echo "127.0.0.1 sip_www" | tee -a /etc/hosts |
| 4 | 4 | |
| 5 | 5 | # Configura localização das aplicações SEI e SIP |
| 6 | -ln -s /mnt/sei/src/sei /var/www/html/sei | |
| 7 | -ln -s /mnt/sei/src/sip /var/www/html/sip | |
| 6 | +ln -s /mnt/sei/src/sei /var/www/html/ | |
| 7 | +ln -s /mnt/sei/src/sip /var/www/html/ | |
| 8 | 8 | |
| 9 | 9 | # Configura localização correta da infra_php |
| 10 | 10 | if [ -d /mnt/sei/src/infra/infra_php ]; then dir_infra_php="/mnt/sei/src/infra/infra_php"; else dir_infra_php="/mnt/sei/src/infra_php"; fi |
| 11 | -ln -sf $dir_infra_php /var/www/html/infra_php | |
| 11 | +ln -sf $dir_infra_php /var/www/html/ | |
| 12 | 12 | |
| 13 | 13 | # Configura localização correta da infra_js |
| 14 | 14 | if [ -d /mnt/sei/src/infra/infra_js ]; then dir_infra_js="/mnt/sei/src/infra/infra_js"; else dir_infra_js="/mnt/sei/src/infra_js"; fi |
| 15 | -ln -sf $dir_infra_js /var/www/html/infra_js | |
| 15 | +ln -sf $dir_infra_js /var/www/html/ | |
| 16 | 16 | |
| 17 | 17 | # Configura localização correta da infra_css |
| 18 | 18 | if [ -d /mnt/sei/src/infra/infra_css ]; then dir_infra_css="/mnt/sei/src/infra/infra_css"; else dir_infra_css="/mnt/sei/src/infra_css"; fi |
| 19 | -ln -sf $dir_infra_css /var/www/html/infra_css | |
| 19 | +ln -sf $dir_infra_css /var/www/html/ | |
| 20 | 20 | |
| 21 | 21 | # Atribuição dos parâmetros de configuração do SEI |
| 22 | 22 | if [ -f /var/www/html/sei/ConfiguracaoSEI.php ] && [ ! -f /var/www/html/sei/ConfiguracaoSEI.php~ ]; then |
| ... | ... | @@ -36,20 +36,6 @@ if [ ! -f /var/www/html/sip/ConfiguracaoSip.php ]; then |
| 36 | 36 | cp /opt/sip/ConfiguracaoSip.php /var/www/html/sip/ConfiguracaoSip.php |
| 37 | 37 | fi |
| 38 | 38 | |
| 39 | -# Configura localização das aplicações SEI e SIP | |
| 40 | -ln -s /mnt/sei/src/sei /var/www/html/sei | |
| 41 | -ln -s /mnt/sei/src/sip /var/www/html/sip | |
| 42 | - | |
| 43 | -# Configura localização correta da infra_php | |
| 44 | -if [ ! -d /var/www/html/infra_php ]; then | |
| 45 | - ln -s /mnt/sei/src/infra/infra_php /var/www/html/infra_php | |
| 46 | -fi | |
| 47 | - | |
| 48 | -# Configura localização correta da infra_js | |
| 49 | -if [ ! -d /var/www/html/infra_js ]; then | |
| 50 | - ln -s /mnt/sei/src/infra/infra_js /var/www/html/infra_js | |
| 51 | -fi | |
| 52 | - | |
| 53 | 39 | # Criação do diretório padrão de upload de arquivos |
| 54 | 40 | mkdir /var/www/html/sei/upload && chmod -R 666 /var/www/html/sei/upload |
| 55 | 41 | mkdir /var/www/html/sip/upload && chmod -R 666 /var/www/html/sip/upload | ... | ... |