mirror of
				https://github.com/flynx/proxmox-utils.git
				synced 2025-10-31 04:00:08 +00:00 
			
		
		
		
	...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									43f19810a1
								
							
						
					
					
						commit
						345fc9147e
					
				| @ -46,6 +46,8 @@ fi | |||||||
| FROM=$1 | FROM=$1 | ||||||
| TO=$2 | TO=$2 | ||||||
| 
 | 
 | ||||||
|  | SLEEP=${SLEEP:-} | ||||||
|  | 
 | ||||||
| 
 | 
 | ||||||
| # XXX should we build TO if it's not there??? | # XXX should we build TO if it's not there??? | ||||||
| 
 | 
 | ||||||
| @ -57,6 +59,9 @@ TO=$2 | |||||||
| @ lxc-attach $TO -- turnkey-occ maintenance:mode --on | @ lxc-attach $TO -- turnkey-occ maintenance:mode --on | ||||||
| 
 | 
 | ||||||
| # XXX should we sleep here for a minute or 6 as is recommended in the docs??? | # XXX should we sleep here for a minute or 6 as is recommended in the docs??? | ||||||
|  | [ -z "$SLEEP" ] \ | ||||||
|  | 	|| [ $SLEEP <= 0  ] \ | ||||||
|  | 	|| sleep $(( $SLEEP * 60 )) | ||||||
| 
 | 
 | ||||||
| # sql | # sql | ||||||
| @ lxc-attach $TO -- mysql -e "DROP DATABASE nextcloud" | @ lxc-attach $TO -- mysql -e "DROP DATABASE nextcloud" | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user