fix: [test] GPG homedir permission

pull/5240/head
Jakub Onderka 2020-06-02 10:55:43 +02:00
parent 46c5b824cb
commit 3a641e29d9
1 changed files with 2 additions and 4 deletions

View File

@ -83,14 +83,12 @@ install:
# /!\ VERY INSECURE BUT FASTER ON THE BUILD ENV OF TRAVIS
- sudo cp -a /dev/urandom /dev/random
- sudo gpg --no-tty --no-permission-warning --pinentry-mode=loopback --passphrase "travistest" --homedir `pwd`/.gnupg --gen-key --batch `pwd`/travis/gpg
- sudo gpg --list-secret-keys --homedir `pwd`/.gnupg
- sudo chown $USER:www-data `pwd`/.gnupg
- sudo chmod 700 `pwd`/.gnupg
# change perms
- sudo chown -R $USER:www-data `pwd`
- sudo chmod +x /home/travis/build
- sudo chmod +x /home/travis
- sudo chmod +x /home
- sudo chmod -R 770 `pwd`/.gnupg
# Get authkey
- sudo usermod -a -G www-data $USER
- sudo -E su $USER -c 'app/Console/cake userInit -q | sudo tee ./key.txt'
@ -166,7 +164,7 @@ script:
- popd
after_failure:
- ls -Rl `pwd`/app
- ls -aRl `pwd`
- curl http://misp.local
- cat /etc/apache2/sites-available/misp.local.conf
- sudo tail -n +1 `pwd`/app/tmp/logs/*