You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							27 lines
						
					
					
						
							1.3 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							27 lines
						
					
					
						
							1.3 KiB
						
					
					
				
								#!/usr/bin/env bash
							 | 
						|
								
							 | 
						|
								# changes in /usr/share/sympa/lib/Sympa/Config/Schema.pm
							 | 
						|
								sed -i "s/.*005ab2.*/       default => '#ad0c78', # '#005ab2' replaced by ZOURIT-COLOR-1/" /usr/share/sympa/lib/Sympa/Config/Schema.pm
							 | 
						|
								sed -i "s/.*004b94.*/       default => '#1f2937', # '#004b94' replaced by ZOURIT-COLOR-2/" /usr/share/sympa/lib/Sympa/Config/Schema.pm
							 | 
						|
								sed -i "s/.*0090e9.*/       default => '#b15593', # '#0090e9' replaced by ZOURIT-COLOR-3/" /usr/share/sympa/lib/Sympa/Config/Schema.pm
							 | 
						|
								sed -i "s/.*66aaff.*/       default => '#949ba7', # '#66aaff' replaced by ZOURIT-COLOR-4/" /usr/share/sympa/lib/Sympa/Config/Schema.pm
							 | 
						|
								
							 | 
						|
								# changes in /usr/share/sympa/default/web_tt2/css.tt2
							 | 
						|
								if ! grep -q '.top-bar button:hover' /usr/share/sympa/default/web_tt2/css.tt2; then
							 | 
						|
								    sed -i "1661i\\.top-bar button:hover{\\n    color: white;\\n}" /usr/share/sympa/default/web_tt2/css.tt2
							 | 
						|
								    echo 'style changed successfully'
							 | 
						|
								else
							 | 
						|
								    echo 'style already changed!'
							 | 
						|
								fi
							 | 
						|
								
							 | 
						|
								# detect if exists inherited list styles
							 | 
						|
								socket_restart=false
							 | 
						|
								for i in /var/lib/sympa/css/*; do
							 | 
						|
								    if [[ "$i" != '/var/lib/sympa/css/style.css' ]] && [[ -d "$i" ]]; then
							 | 
						|
								        socket_restart=true
							 | 
						|
								        rm -rf "$i"
							 | 
						|
								    fi
							 | 
						|
								done
							 | 
						|
								
							 | 
						|
								[[ $socket_restart == true ]] && systemctl restart wwsympa.socket && echo "wwsympa restarted with fresh styles"
							 | 
						|
								true
							 |