mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-10-26 08:42:29 +01:00 
			
		
		
		
	Create user 'cloud' in cloudstack-usage postinstall (#7559)
This ensures the chown 'cloud:cloud' command (later in the same file) is always performed with no error.
This commit is contained in:
		
							parent
							
								
									4138ca7c5d
								
							
						
					
					
						commit
						c3535880d2
					
				
							
								
								
									
										5
									
								
								debian/cloudstack-usage.postinst
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								debian/cloudstack-usage.postinst
									
									
									
									
										vendored
									
									
								
							| @ -21,6 +21,11 @@ set -e | |||||||
| 
 | 
 | ||||||
| case "$1" in | case "$1" in | ||||||
|     configure) |     configure) | ||||||
|  |         if ! getent passwd cloud >/dev/null; then | ||||||
|  |             adduser --quiet --system --group --no-create-home --home /var/lib/cloudstack/management cloud | ||||||
|  |         else | ||||||
|  |             usermod -m -d /var/lib/cloudstack/management cloud || true | ||||||
|  |         fi | ||||||
| 
 | 
 | ||||||
|         # Linking usage server db.properties to management server db.properties |         # Linking usage server db.properties to management server db.properties | ||||||
|         if [ -f "/etc/cloudstack/management/db.properties" ]; then |         if [ -f "/etc/cloudstack/management/db.properties" ]; then | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user