|  | @@ -223,11 +223,22 @@ function restore_local_ghost {
 | 
	
		
			
			| 223 | 223 |          GHOST_DOMAIN_NAME=$(get_completion_param "ghost domain")
 | 
	
		
			
			| 224 | 224 |      fi
 | 
	
		
			
			| 225 | 225 |      if [ $GHOST_DOMAIN_NAME ]; then
 | 
	
		
			
			|  | 226 | +        function_check get_mariadb_password
 | 
	
		
			
			|  | 227 | +        get_mariadb_password
 | 
	
		
			
			|  | 228 | +        DATABASE_PASSWORD=$MARIADB_PASSWORD
 | 
	
		
			
			|  | 229 | +
 | 
	
		
			
			|  | 230 | +        systemctl stop ghost
 | 
	
		
			
			|  | 231 | +
 | 
	
		
			
			| 226 | 232 |          function_check ghost_create_database
 | 
	
		
			
			| 227 | 233 |          ghost_create_database
 | 
	
		
			
			| 228 | 234 |  
 | 
	
		
			
			| 229 | 235 |          function_check restore_database
 | 
	
		
			
			| 230 | 236 |          restore_database ghost ${GHOST_DOMAIN_NAME}
 | 
	
		
			
			|  | 237 | +
 | 
	
		
			
			|  | 238 | +        systemctl start ghost
 | 
	
		
			
			|  | 239 | +
 | 
	
		
			
			|  | 240 | +        DATABASE_PASSWORD=
 | 
	
		
			
			|  | 241 | +        MARIADB_PASSWORD=
 | 
	
		
			
			| 231 | 242 |      fi
 | 
	
		
			
			| 232 | 243 |  }
 | 
	
		
			
			| 233 | 244 |  
 | 
	
	
		
			
			|  | @@ -255,6 +266,9 @@ function restore_remote_ghost {
 | 
	
		
			
			| 255 | 266 |          GHOST_DOMAIN_NAME=$(get_completion_param "ghost domain")
 | 
	
		
			
			| 256 | 267 |      fi
 | 
	
		
			
			| 257 | 268 |  
 | 
	
		
			
			|  | 269 | +    function_check get_mariadb_password
 | 
	
		
			
			|  | 270 | +    get_mariadb_password
 | 
	
		
			
			|  | 271 | +
 | 
	
		
			
			| 258 | 272 |      function_check restore_database_from_friend
 | 
	
		
			
			| 259 | 273 |  
 | 
	
		
			
			| 260 | 274 |      function_check ghost_create_database
 | 
	
	
		
			
			|  | @@ -356,6 +370,9 @@ function ghost_create_database {
 | 
	
		
			
			| 356 | 370 |          return
 | 
	
		
			
			| 357 | 371 |      fi
 | 
	
		
			
			| 358 | 372 |  
 | 
	
		
			
			|  | 373 | +    function_check get_mariadb_password
 | 
	
		
			
			|  | 374 | +    get_mariadb_password
 | 
	
		
			
			|  | 375 | +
 | 
	
		
			
			| 359 | 376 |      function_check create_database
 | 
	
		
			
			| 360 | 377 |      create_database ghost "$GHOST_ADMIN_PASSWORD"
 | 
	
		
			
			| 361 | 378 |  }
 |