chg: [fix] Reshuffled some lines in rc.local. Typo in json.

pull/11/head
Steve Clement 2018-11-19 12:26:26 +09:00
parent 18bdcddae4
commit 4237475cda
2 changed files with 4 additions and 4 deletions

View File

@ -55,7 +55,7 @@
[ [
"--manifest", "--manifest",
"--vsys", "0", "--vsys", "0",
" --eulafile", "/tmp/LICENSE-misp", "--eulafile", "/tmp/LICENSE-misp",
"--description", "{{user `vm_description`}}", "--description", "{{user `vm_description`}}",
"--version", "{{user `vm_version`}}" "--version", "{{user `vm_version`}}"
], ],

View File

@ -642,14 +642,14 @@ sed -i -e '$i \echo never > /sys/kernel/mm/transparent_hugepage/enabled\n' /etc/
sed -i -e '$i \echo 1024 > /proc/sys/net/core/somaxconn\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 \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 > /tmp/worker_start_rc.local.log\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 2> /dev/null &\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 \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 \for d in $git_dirs; do\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 \ 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 \ cd $d && sudo git pull >> /tmp/git-update_rc.local.log &\n' /etc/rc.local
sed -i -e '$i \done\n' /etc/rc.local sed -i -e '$i \done\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 2> /dev/null &\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
echo "--- Installing MISP modules… ---" echo "--- Installing MISP modules… ---"