- Various tweaks to scripts

pull/3/head
Steve Clement 2017-12-06 15:28:00 +01:00
parent 3f54ec136f
commit 80417468fa
3 changed files with 9 additions and 1 deletions

View File

@ -50,5 +50,10 @@ You can also launch all builders in parallel.
$ TAG=$(curl https://api.github.com/repos/MISP/MISP/releases/latest | jq -r '.tag_name')
$ ./upload.sh github_api_token=$GITHUB_AUTH_TOKEN owner=MISP repo=MISP tag=$TAG filename=./output-virtualbox-iso/MISP_demo.ova
## Upload latest release
curl -s https://api.github.com/repos/MISP/MISP/tags |jq -r '.[0] | .name'
You can add these lines in the *post-processors* section of the file
*misp.json* if you want to automate the process.

View File

@ -59,6 +59,7 @@ if [ "${LATEST_COMMIT}" != "$(cat /tmp/misp-latest.sha)" ]; then
rsync -azv --progress ${FILE}.asc ${REL_USER}@${REL_SERVER}:export/MISP_${VER}@${LATEST_COMMIT}
ssh ${REL_USER}@${REL_SERVER} rm export/latest
ssh ${REL_USER}@${REL_SERVER} ln -s MISP_${VER}@${LATEST_COMMIT} export/latest
ssh ${REL_USER}@${REL_SERVER} chmod -R +r export
done
# Remove files for next run
@ -70,6 +71,7 @@ if [ "${LATEST_COMMIT}" != "$(cat /tmp/misp-latest.sha)" ]; then
rm packer_virtualbox-iso_virtualbox-iso_sha256.checksum.asc
rm packer_virtualbox-iso_virtualbox-iso_sha384.checksum.asc
rm packer_virtualbox-iso_virtualbox-iso_sha512.checksum.asc
rm MISP_${VER}@${LATEST_COMMIT}-vmware.zip.asc
echo ${LATEST_COMMIT} > /tmp/misp-latest.sha
else
echo "Current MISP version ${VER}@${LATEST_COMMIT} is up to date."

View File

@ -277,7 +277,8 @@ EOF
sudo chown -R www-data:www-data $PATH_TO_MISP/app/Config
sudo chmod -R 750 $PATH_TO_MISP/app/Config
# Set some MISP directives with the command line tool
sudo $PATH_TO_MISP/app/Console/cake Baseurl ""
##sudo $PATH_TO_MISP/app/Console/cake Baseurl ""
sudo -u www-data /var/www/MISP/app/Console/cake Baseurl http://
sudo $PATH_TO_MISP/app/Console/cake Live $MISP_LIVE