mirror of https://github.com/MISP/misp-packer
- Various tweaks to scripts
parent
3f54ec136f
commit
80417468fa
|
@ -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')
|
$ 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.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
|
You can add these lines in the *post-processors* section of the file
|
||||||
*misp.json* if you want to automate the process.
|
*misp.json* if you want to automate the process.
|
||||||
|
|
|
@ -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}
|
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} rm export/latest
|
||||||
ssh ${REL_USER}@${REL_SERVER} ln -s MISP_${VER}@${LATEST_COMMIT} 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
|
done
|
||||||
|
|
||||||
# Remove files for next run
|
# 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_sha256.checksum.asc
|
||||||
rm packer_virtualbox-iso_virtualbox-iso_sha384.checksum.asc
|
rm packer_virtualbox-iso_virtualbox-iso_sha384.checksum.asc
|
||||||
rm packer_virtualbox-iso_virtualbox-iso_sha512.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
|
echo ${LATEST_COMMIT} > /tmp/misp-latest.sha
|
||||||
else
|
else
|
||||||
echo "Current MISP version ${VER}@${LATEST_COMMIT} is up to date."
|
echo "Current MISP version ${VER}@${LATEST_COMMIT} is up to date."
|
||||||
|
|
|
@ -277,7 +277,8 @@ EOF
|
||||||
sudo chown -R www-data:www-data $PATH_TO_MISP/app/Config
|
sudo chown -R www-data:www-data $PATH_TO_MISP/app/Config
|
||||||
sudo chmod -R 750 $PATH_TO_MISP/app/Config
|
sudo chmod -R 750 $PATH_TO_MISP/app/Config
|
||||||
# Set some MISP directives with the command line tool
|
# 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
|
sudo $PATH_TO_MISP/app/Console/cake Live $MISP_LIVE
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue