mirror of
				https://github.com/telekom-security/tpotce.git
				synced 2025-11-04 06:22:54 +00:00 
			
		
		
		
	tweaking
This commit is contained in:
		
							parent
							
								
									b9245aef0f
								
							
						
					
					
						commit
						7e6637847d
					
				
					 2 changed files with 4 additions and 3 deletions
				
			
		| 
						 | 
					@ -114,7 +114,7 @@ fuELK () {
 | 
				
			||||||
  # ELK data will be kept for <= 90 days, check /etc/crontab for curator modification
 | 
					  # ELK data will be kept for <= 90 days, check /etc/crontab for curator modification
 | 
				
			||||||
  # ELK daemon log files will be removed
 | 
					  # ELK daemon log files will be removed
 | 
				
			||||||
  if [ "$myPERSISTENCE" != "on" ]; then rm -rf /data/elk/log/*; fi
 | 
					  if [ "$myPERSISTENCE" != "on" ]; then rm -rf /data/elk/log/*; fi
 | 
				
			||||||
  mkdir -p /data/elk 
 | 
					  mkdir -p /data/elk
 | 
				
			||||||
  chmod 760 /data/elk -R
 | 
					  chmod 760 /data/elk -R
 | 
				
			||||||
  chown tpot:tpot /data/elk -R
 | 
					  chown tpot:tpot /data/elk -R
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -170,6 +170,7 @@ fuMAILONEY () {
 | 
				
			||||||
# Let's create a function to clean up nginx logs
 | 
					# Let's create a function to clean up nginx logs
 | 
				
			||||||
fuNGINX () {
 | 
					fuNGINX () {
 | 
				
			||||||
  if [ "$myPERSISTENCE" != "on" ]; then rm -rf /data/nginx/log/*; fi
 | 
					  if [ "$myPERSISTENCE" != "on" ]; then rm -rf /data/nginx/log/*; fi
 | 
				
			||||||
 | 
					  touch /data/nginx/log/error.log
 | 
				
			||||||
  chmod 644 /data/nginx/conf -R
 | 
					  chmod 644 /data/nginx/conf -R
 | 
				
			||||||
  chmod 644 /data/nginx/cert -R
 | 
					  chmod 644 /data/nginx/cert -R
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -631,9 +631,9 @@ case $myCONF_TPOT_FLAVOR in
 | 
				
			||||||
esac
 | 
					esac
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Let's load docker images
 | 
					# Let's load docker images
 | 
				
			||||||
myIMAGESCOUNT=$(cat $myTPOTCOMPOSE | grep -v '#' | grep image | cut -d: -f2 | wc -l)
 | 
					myIMAGESCOUNT=$(cat $myTPOTCOMPOSE | grep -v '#' | grep image | cut -d: -f2 | uniq | wc -l)
 | 
				
			||||||
j=0
 | 
					j=0
 | 
				
			||||||
for name in $(cat $myTPOTCOMPOSE | grep -v '#' | grep image | cut -d'"' -f2)
 | 
					for name in $(cat $myTPOTCOMPOSE | grep -v '#' | grep image | cut -d'"' -f2 | uniq)
 | 
				
			||||||
  do
 | 
					  do
 | 
				
			||||||
    dialog --title "[ Downloading docker images, please be patient ]" --backtitle "$myBACKTITLE" \
 | 
					    dialog --title "[ Downloading docker images, please be patient ]" --backtitle "$myBACKTITLE" \
 | 
				
			||||||
           --gauge "\n  Now downloading: $name\n" 8 80 $(expr 100 \* $j / $myIMAGESCOUNT) <<EOF
 | 
					           --gauge "\n  Now downloading: $name\n" 8 80 $(expr 100 \* $j / $myIMAGESCOUNT) <<EOF
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue