mirror of
				https://git.lapiole.org/dani/ansible-roles.git
				synced 2025-10-27 00:41:35 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			335 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			335 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| if [ -d "/etc/backup/post.d" ]; then
 | |
|   for H in $(find /etc/backup/post.d -type f -o -type l | sort); do
 | |
|     if [ -x $H ]; then
 | |
|       echo "Running hook $H"
 | |
|       $H "$@"
 | |
|       echo "Finished hook $H"
 | |
|     else
 | |
|       echo "Skiping hook $H as it's not executable"
 | |
|     fi
 | |
|   done
 | |
| fi
 | |
| # Remove the lock
 | |
| rm -f /var/lock/bkp.lock
 | 
