mirror of https://github.com/MISP/misp-packer
chg: [bootsrap] Redirected /etc/rc.local startup verbosity to /tmp log files
chg: [tools] Changed git:// to https:// to avoid firewalls blocking a pullpull/11/head
parent
bcc1cf2d3e
commit
ef0f651f0b
|
@ -648,14 +648,14 @@ fi
|
|||
sed -i -e '$i \echo never > /sys/kernel/mm/transparent_hugepage/enabled\n' /etc/rc.local
|
||||
sed -i -e '$i \echo 1024 > /proc/sys/net/core/somaxconn\n' /etc/rc.local
|
||||
sed -i -e '$i \sysctl vm.overcommit_memory=1\n' /etc/rc.local
|
||||
sed -i -e '$i \sudo -u www-data bash /var/www/MISP/app/Console/worker/start.sh\n' /etc/rc.local
|
||||
sed -i -e '$i \sudo -u www-data misp-modules -l 0.0.0.0 -s &\n' /etc/rc.local
|
||||
sed -i -e '$i \sudo -u www-data bash /var/www/misp-dashboard/start_all.sh\n' /etc/rc.local
|
||||
sed -i -e '$i \sudo -u misp /usr/local/src/viper/viper-web -p 8888 -H 0.0.0.0 &\n' /etc/rc.local
|
||||
sed -i -e '$i \sudo -u www-data bash /var/www/MISP/app/Console/worker/start.sh > /tmp/worker_start_rc.local.log\n' /etc/rc.local
|
||||
sed -i -e '$i \sudo -u www-data misp-modules -l 0.0.0.0 -s > /tmp/misp-modules_rc.local.log &\n' /etc/rc.local
|
||||
sed -i -e '$i \sudo -u www-data bash /var/www/misp-dashboard/start_all.sh > /tmp/misp-dashboard_rc.local.log\n' /etc/rc.local
|
||||
sed -i -e '$i \sudo -u misp /usr/local/src/viper/viper-web -p 8888 -H 0.0.0.0 > /tmp/viper-web_rc.local.log &\n' /etc/rc.local
|
||||
sed -i -e '$i \git_dirs="/usr/local/src/misp-modules/ /var/www/misp-dashboard /usr/local/src/faup /usr/local/src/mail_to_misp /usr/local/src/misp-modules /usr/local/src/viper /var/www/misp-dashboard"\n' /etc/rc.local
|
||||
sed -i -e '$i \for d in $git_dirs; do\n' /etc/rc.local
|
||||
sed -i -e '$i \ echo "Updating ${d}"\n' /etc/rc.local
|
||||
sed -i -e '$i \ cd $d && sudo git pull &\n' /etc/rc.local
|
||||
sed -i -e '$i \ echo "Updating ${d}" >> /tmp/git-update_rc.local.log\n' /etc/rc.local
|
||||
sed -i -e '$i \ cd $d && sudo git pull >> /tmp/git-update_rc.local.log &\n' /etc/rc.local
|
||||
sed -i -e '$i \done\n' /etc/rc.local
|
||||
|
||||
|
||||
|
@ -712,7 +712,7 @@ echo "--- Installing mail2misp ---"
|
|||
cd /usr/local/src/
|
||||
apt-get install -y cmake > /dev/null 2>&1
|
||||
git clone https://github.com/MISP/mail_to_misp.git > /dev/null 2>&1
|
||||
git clone git://github.com/stricaud/faup.git faup > /dev/null 2>&1
|
||||
git clone https://github.com/stricaud/faup.git faup > /dev/null 2>&1
|
||||
chown -R misp:misp faup mail_to_misp
|
||||
cd faup/build
|
||||
sudo -u misp cmake .. > /dev/null 2>&1 && sudo -u misp make > /dev/null 2>&1
|
||||
|
|
Loading…
Reference in New Issue