mirror of
				https://github.com/telekom-security/tpotce.git
				synced 2025-10-29 19:42:53 +00:00 
			
		
		
		
	modify installer and image selection
This commit is contained in:
		
							parent
							
								
									2dc676868d
								
							
						
					
					
						commit
						702de8c281
					
				
					 5 changed files with 6 additions and 5 deletions
				
			
		|  | @ -208,19 +208,19 @@ EOF | ||||||
| # Let's make sure only myFLAVOR images will be downloaded and started | # Let's make sure only myFLAVOR images will be downloaded and started | ||||||
| if [ "$myFLAVOR" = "HP" ] | if [ "$myFLAVOR" = "HP" ] | ||||||
|   then |   then | ||||||
|     cp /root/tpot/data/hp_images.conf /root/tpot/data/images.conf |     cp /root/tpot/data/imgcfg/hp_images.conf /root/tpot/data/images.conf | ||||||
| fi | fi | ||||||
| if [ "$myFLAVOR" = "INDUSTRIAL" ] | if [ "$myFLAVOR" = "INDUSTRIAL" ] | ||||||
|   then |   then | ||||||
|     cp /root/tpot/data/industrial_images.conf /root/tpot/data/images.conf |     cp /root/tpot/data/imgcfg/industrial_images.conf /root/tpot/data/images.conf | ||||||
| fi | fi | ||||||
| if [ "$myFLAVOR" = "TPOT" ] | if [ "$myFLAVOR" = "TPOT" ] | ||||||
|   then |   then | ||||||
|     cp /root/tpot/data/tpot_images.conf /root/tpot/data/images.conf |     cp /root/tpot/data/imgcfg/tpot_images.conf /root/tpot/data/images.conf | ||||||
| fi | fi | ||||||
| if [ "$myFLAVOR" = "ALL" ] | if [ "$myFLAVOR" = "ALL" ] | ||||||
|   then |   then | ||||||
|     cp /root/tpot/data/all_images.conf /root/tpot/data/images.conf |     cp /root/tpot/data/imgcfg/all_images.conf /root/tpot/data/images.conf | ||||||
| fi | fi | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | @ -304,6 +304,8 @@ chown tsec:tsec /root/tpot/home/* | ||||||
| chmod 644 /root/tpot/data/upstart/* | chmod 644 /root/tpot/data/upstart/* | ||||||
| 
 | 
 | ||||||
| # Let's copy some files | # Let's copy some files | ||||||
|  | tar xvfz /root/tpot/data/elkbase.tgz -C /  | ||||||
|  | rm /root/tpot/data/elkbase.tgz | ||||||
| cp -R /root/tpot/bin/* /usr/bin/ | cp -R /root/tpot/bin/* /usr/bin/ | ||||||
| cp -R /root/tpot/data/* /data/ | cp -R /root/tpot/data/* /data/ | ||||||
| cp -R /root/tpot/etc/issue /etc/ | cp -R /root/tpot/etc/issue /etc/ | ||||||
|  | @ -313,7 +315,6 @@ for i in $(cat /data/images.conf); | ||||||
|   do |   do | ||||||
|     cp /data/upstart/$i.conf /etc/init/; |     cp /data/upstart/$i.conf /etc/init/; | ||||||
| done | done | ||||||
| tar xvfz /data/elkbase.tgz -C /  |  | ||||||
| 
 | 
 | ||||||
| # Let's take care of some files and permissions | # Let's take care of some files and permissions | ||||||
| chmod 760 -R /data | chmod 760 -R /data | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Marco Ochse
						Marco Ochse