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.
		
		
		
		
		
			
		
			
				
					
					
						
							18 lines
						
					
					
						
							324 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							18 lines
						
					
					
						
							324 B
						
					
					
				
								#!/bin/bash
							 | 
						|
								
							 | 
						|
								case $1 in
							 | 
						|
								minute) ;;
							 | 
						|
								daily) ;;
							 | 
						|
								*) echo "expected [minute|daily]" && exit 1 ;;
							 | 
						|
								esac
							 | 
						|
								
							 | 
						|
								SELECTOR=$1
							 | 
						|
								
							 | 
						|
								for i in /var/www/cagettepei/*; do
							 | 
						|
								    if [[ -d $i ]]; then
							 | 
						|
								        cd "$i/www" || echo "Folder not found: $i/www"
							 | 
						|
								        echo "cron-$SELECTOR in: $i"
							 | 
						|
								        neko index.n cron/$SELECTOR
							 | 
						|
								        echo
							 | 
						|
								    fi
							 | 
						|
								done
							 |